Questions tagged [launch4j]

Cross-platform Java executable wrapper for creating lightweight Windows native EXEs. Provides better user experience.

Launch4j is a cross-platform tool for wrapping Java applications distributed as jars in lightweight Windows native executables. The executable can be configured to search for a certain JRE version or use a bundled one, and it's possible to set runtime options, like the initial/max heap size. The wrapper also provides better user experience through an application icon, a native pre-JRE splash screen, a custom process name, and a Java download page in case the appropriate JRE cannot be found. http://launch4j.sourceforge.net/

381 questions
4
votes
1 answer

How can I reference a custom icon for a file association in Inno Setup?

My application creates documents. I want to have a special icon for the documents it creates, other than just the application icon. On OS X, there is a clear way to do this via the Info.plist. In Windows, however, I'm having trouble. I am using…
martinez314
  • 12,162
  • 5
  • 36
  • 63
4
votes
8 answers

launch4j bundled JRE error ."This application was configured to use a bundled Java Runtime Environment but the runtime is missing or corrupted"

I am using launch4j for the first time and I get following error. Here is launch4j error log. Compiling resources Generated resource file... LANGUAGE 0, 1 2 RCDATA BEGIN "1.5.0\0" END 18 RCDATA BEGIN "1\0" END 21 RCDATA BEGIN…
saurabh
  • 209
  • 1
  • 4
  • 17
4
votes
1 answer

How to run lauch4j in command line?

I am newbie to launch4j.I want to create exe file using launch4j. I have followed this link for lauch4j tutorial. Now,i want to create exe file in command line using launch4j? I have tried following command but its not working. >launch4j.exe…
Ami
  • 4,241
  • 6
  • 41
  • 75
4
votes
2 answers

How to create a windows service with launch4j?

I am creating and executable of a java app with launch4j. How can i configure it to be loaded as a windows service? With Jsmooth i can set the wrapper but i dont know if this can be done in launch4j
Cesar
  • 1,610
  • 2
  • 16
  • 42
4
votes
2 answers

Decompile Java Application packed with launch4j

I have a Java application that was converted to an .exe with launch4j. For several reasons I need to get access to the class files of the application. The first thing I tried was unpacking the exe with 7zip. That way I get a handful of class files,…
Boris
  • 8,551
  • 25
  • 67
  • 120
4
votes
5 answers

Launch4j / windres: how to set paths correctly?

I have launch4j configure for my project. I used it back, when i developed on windowsXP, where it worked. Now i need it to build on mac as well: My build.xml:
Fabian Zeindl
  • 5,860
  • 8
  • 54
  • 78
3
votes
1 answer

Wrapping a java command line application with launch4j and maven

I would like to wrap a java based command line app and all it's dependencies into a single *.exe file using maven and launch4j. Now I have read all similar questions on SO like this one and this but I can not get it to work. Can anybody supply a…
Drejc
  • 14,196
  • 16
  • 71
  • 106
3
votes
2 answers

Package java files in exe for windows with maven

The Launch4J port for Maven is terribly documented and I fail to use it in the way I want. Is there some good Maven plugin to gernerate an exe file with following criteria (at least some of them, if possible): No wrapping of jars Jars can be in…
Hartz Peter
  • 119
  • 6
3
votes
1 answer

How to assure windows that my app is safe to run?

For my college project, I created a MapGenerator to create maps for the project. It is a group project, so I converted my .java files to .exe using Launch4J. I then shared it to my friends using Google Drive. But then, while downloading, my friends…
Ruthvik
  • 790
  • 5
  • 28
3
votes
2 answers

Need help to fix JVM error, related to launch4j

I used launch4j, Innosetup to create a installer of my java program. I have 6 classes. I added all the classes and required jar in launch4j. The exe get created through launch4j. I created an installer using innosetup. When I try to run the…
Manikandan
  • 1,479
  • 6
  • 48
  • 89
3
votes
1 answer

running launch4j as a ant build task on macosx

Im trying to run launch4j as a build task on macosx but im getting the following exception: /Users/myname/Desktop/build/buildarms2jar.xml:67: net.sf.launch4j.BuilderException: net.sf.launch4j.ExecException: java.io.IOException: Cannot run program…
MBU
  • 4,998
  • 12
  • 59
  • 98
3
votes
1 answer

Launch4j:This application requires a Java Runtime Environment 1.8.0_161 using maven?

I am using the launch4j maven plugin to generate an .exe for my application.I would like also to embed a bundled JRE.i managed to achieve it with success from my pc which i have java 1.8.0_161 installed. My problem now is that when i try to execute…
Mixalis Navridis
  • 181
  • 2
  • 15
3
votes
2 answers

Maven, JavaFX, Launch4J-Maven-plugin - How to bundle a JRE?

Im building a small app in JavaFX using maven and openJDK 12. However, I need my .Jar to contain a bundled JRE so it can run on windows OS without downloading a proper JRE. Im also using launch4j-maven-plugin I tried several solutions here on SOF…
KenobiBastila
  • 539
  • 4
  • 16
  • 52
3
votes
1 answer

Launch4J Plugin creates an EXE (along with JAR) but EXE cannot find main class in Spring boot

I wrote a plugin to create an EXE and JAR for my project with the help of Launch4J plugin. However, on executing the EXE file, I get the error - Error: Could not find or load main class However, I run the JAR by giving java -jar app.jar , it runs…
Prateek Narendra
  • 1,837
  • 5
  • 38
  • 67
3
votes
1 answer

Unable to reach resources folder when compiling from .jar to .exe using Launch4j

I made a small Java program for academic purposes, its main focus is to read some .txt files and present the information to the user. These files are present in the resources folder, under the src folder. The program runs as intended when launched…
JNogueira
  • 33
  • 2