Instructions to setup Launch4j for jar file

筅森魡賤 提交于 2019-12-05 22:12:50

问题


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

回答1:


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 !



来源:https://stackoverflow.com/questions/15366461/instructions-to-setup-launch4j-for-jar-file

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!