1 . 首先把你的程序生成jar文件,我推荐使用Myeclipse + fatjar
2. 到http://jsmooth.sourceforge.net/index.php下载jsmooth
安装后运行,界面如下 :
2. 到http://jsmooth.sourceforge.net/index.php下载jsmooth
安装后运行,界面如下 :
3 . 在Skeleton Chooser下拉框中选择Windowed Wrapper
Skeleton Properties : 在launch java app in the exe process 选项打勾
4. 点击Executable, 这一步是设置生成的exe文件的属性,包括名字,图标,路径
5. 设置完成后,继续下一选项,Application
Main class : 主运行类,有main()方法的类
Embedded jar : 就是选择你要制作成EXE文件的jar
5. 其他的选项如果不需要可不必设置,最后单击project下的compile 就OK了 , 可以在装有jre的机器上直接运行