How to package executable JAR file into EXE

生来就可爱ヽ(ⅴ<●) 提交于 2019-11-30 08:17:16

问题


I would like to deploy my final build as an EXE with an application Icon.

What is the best way to do this? What is the common practice?


回答1:


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/




回答2:


I use jar2exe on Windows. Is a simple wizard done in java where you are asked to input your jar the icon of the exe and a few more information. Here is the link jar2exe



来源:https://stackoverflow.com/questions/17176900/how-to-package-executable-jar-file-into-exe

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