launch4j

Bundle a JRE into an exe using Launch4J

╄→尐↘猪︶ㄣ 提交于 2019-11-30 15:08:16
I'm attempting to bundle the JRE into my exe using launch4j. My folder structure is as follows- |- test |- jre(copied from my windows installation of jre) |-bin |-lib |- jretest.jar (the jar file I am using to create my exe) |- jretest.exe (the output exe file) In Launch4j, I have set the Bundled JRE Path as jre . The exe works fine so far. However, when i copy my exe file elsewhere and run it, I get the error message This application was configured to use a bundled Java Runtime Environment but the runtime is missing or corrupted . I have searched on SO and found the following questions but

launch4j exe has nothing to say for itself, anyone got a suggestion?

别来无恙 提交于 2019-11-30 07:38:15
Running on Linux, I've used launch4j to package an exe. I copy the exe into my Windows 7 VM, and run it. And nothing happens. I run it with --l4j-debug, and nothing still happens (at least, if there's a log file, I cannot find it). Is there some diagnostic technology that I'm missing here? Create a console version of your EXE (in the "Header" tab, change "Header type" from "GUI" to "Console") and run that from a CMD prompt. Most likely you will see an exception message in the console, and that will explain why your app is failing to start. The .jar file needs to be an executable JAR file. Make

Configure Launch4J to use 32-bit JVM only

女生的网名这么多〃 提交于 2019-11-30 05:11:23
I'm using Launch4J to start my Java application and if an x64 JRE is present on the system, Launch4J seems to prefer it. Unfortunately my application cannot run on a 64 bit JVM because I'm loading a 32 bit DLL, which is not possible and leads to an UnsatisfiedLinkError. Is there any way to force/trick Launch4J to use a 32 bit JVM only? I had this exact problem about a year ago, using Lauch4J to wrap a small Java program that required a 32-bit DLL (swt-win32.dll, as it happened). I found that if there were 32-bit and 64-bit JVMs installed, Launch4J would always favour the 64-bit one. It would

Pinning a Java application using Launch4j to the Windows 7 taskbar

淺唱寂寞╮ 提交于 2019-11-30 02:24:12
I'm currently trying to pin a Java application to the Windows 7 taskbar. The application is launched with Launch4j . The program icon is displayed correctly but right-clicking the icon on the taskbar only shows a context-menu with the entry "Close window". No menu entry for pinning the application to the taskbar. Dragging the EXE file into the taskbar is also not working properly. When clicking this new launcher in the taskbar then a second icon spawns in the taskbar. I followed the instructions of the solutions to these two questions to solve the problem but it didn't help: Pinning a Java

How to get the JRE to bundle with launch4j?

那年仲夏 提交于 2019-11-29 19:31:47
问题 I understand that launch4j doesn't bundle the JRE in the .exe but that you have to place it next to it. My question is, how am I supposed to do that? Is there a way for maven to automatically locate and copy the JRE of the JDK I'm using to build my application and copy it to a given directory? I've tried doing something like this: <plugin> <artifactId>maven-resources-plugin</artifactId> <version>2.6</version> <executions> <execution> <id>copy-resources</id> <!-- here the phase you need -->

Difference between .exe and the .exe returned from Inno Setup - Installed application fails [duplicate]

折月煮酒 提交于 2019-11-29 12:54:26
This question already has an answer here: Application does not work when installed with Inno Setup 1 answer I don't know what the issue is, but for some reason my .exe file and the .exe file that I get after running the installer from Inno Setup are not the same. No error codes thrown or anything, it compiles perfectly, but the toolbars in my application (the program was made with Java swing) do not contain their buttons correctly. I have two JToolBars that hold JButtons (each button has an image). When I used Launch4j to wrap my program into an exe it worked perfectly, but when I run the exe

How to automatically update an application installed with Inno Setup

穿精又带淫゛_ 提交于 2019-11-29 11:41:07
I have an executable application setup.exe for Windows that I realized with Launch4j/Inno Setup based on Java. I often frequently release new versions and bug fixes. I would like to know if there is a mechanism to install updates automatically? Inno Setup does not have any built-in mechanism for implementing automatic updates. You need to implement that yourself: Make your application check for new versions (against your application webpage?). E.g. on startup (on a background thread?) If the application detects a new version, make it download an installer to a temporary location. Make the

Launch4j, NSIS, and duplicate pinned Windows 7 taskbar icons

荒凉一梦 提交于 2019-11-29 07:58:07
I'm having a problem wherein when I pin a taskbar icon in Windows 7 for my application, clicking the icon opens up a separate (duplicate) icon for the program instead of keeping it grouped with the shortcut used to call it. The application itself is a .jar file that's been wrapped into an .exe using Launch4j. That would explain why the icon is getting duplicated -- Launch4j is calling a separate process of javaw.exe, and it looks like the AppModelUserID gets confused when you start doing stuff like that. According to this post , the solution is to specify your AppModelUserID through some

How to get the path to the executable when using launch4j?

狂风中的少年 提交于 2019-11-29 06:39:25
I'm using launch4j to wrap an executable jar file in my Windows application, but I need to pass references to some of its libraries in through the JVM arguments. The libraries in question reside in the application install directory, and are always located in the same place, relative to the executable. I'd like to tell launch4j to use executable-relative paths in the JVM options. I know this information is available at the Windows batch script level, but how do you configure launch4j to fetch it? Edit for clarification: I'm looking specifically for how to make the paths relative to the binary

launch4j exe has nothing to say for itself, anyone got a suggestion?

两盒软妹~` 提交于 2019-11-29 03:28:39
问题 Running on Linux, I've used launch4j to package an exe. I copy the exe into my Windows 7 VM, and run it. And nothing happens. I run it with --l4j-debug, and nothing still happens (at least, if there's a log file, I cannot find it). Is there some diagnostic technology that I'm missing here? 回答1: Create a console version of your EXE (in the "Header" tab, change "Header type" from "GUI" to "Console") and run that from a CMD prompt. Most likely you will see an exception message in the console,