方式一:
Java轉exe篇:
實現方式:Eclipse搭配JSmooth(免費)。
1.先由Eclipse制作包含Manifest的JAR。制作教學
2.使用JSmooth將做好的JAR包裝成EXE。
JSmooth下載頁面:
http://jsmooth.sourceforge.net/index.php ;
3.制作完成的exe文件,可在有裝置JRE的Windows上執行。
方式二:
exe4j
方式三
NSIS(這個最好用)
方法四:
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.