Instructions to setup Launch4j for jar file

vijay picture vijay · Mar 12, 2013 · Viewed 44.5k times · Source

I have created my project in U:/myproject where all the java stuff is installed in C: Drive. the jar file i created through netbeans is in u:/myproject/dist/myproject.jar. Could some one provided me the clean instructions of how to setup the launch4j and do i have to create a .exe file first?

or if i just sign the jar file, i will get this errror

output.exe is not a valid win32 application

Answer

user2069871 picture user2069871 · Mar 12, 2013

Using Launch4J can be very simple. You only need your .JAR file to get your .EXE

I usually do the minimum step for my projects :

1) Build the program

2) Give the path to the .JAR file to Launch4j in the first page

3) Set an output for the .EXE file and the .XML results file in the first page

4) In the "JRE" page, set the min JRE version (eg : 1.1.0)

5) Execute !!!

And it should give a good .exe file.

Hope this helps !