将java jar 打包成exe 的软件,目前用的较多的又exe4j、 install4j、 launch4j......
launch4j为java开发的, 所以大多数人更倾向于这个生成exe快捷方式,同时也支持ant编写,内嵌jre。
目录结构:
[img]http://dl2.iteye.com/upload/attachment/0102/6287/2771280b-1518-3d2f-b7c1-b6ae1f5f175f.png[/img]
可以通过双击launch4j.jar运行
例子目录:
[img]http://dl2.iteye.com/upload/attachment/0102/6291/1aaa28f8-745a-3db0-b124-fd13bb207209.png[/img]
配置界面:
基本配置:
[img]http://dl2.iteye.com/upload/attachment/0102/6293/b91e3c3c-5528-3f82-b23a-1010e842f859.png[/img]
JRE地址配置后:
[img]http://dl2.iteye.com/upload/attachment/0102/6295/5d9d5bb8-cc6e-30cd-a656-8c0b75197b49.png[/img]
自动生成的配置文件:
launch4j为java开发的, 所以大多数人更倾向于这个生成exe快捷方式,同时也支持ant编写,内嵌jre。
目录结构:
[img]http://dl2.iteye.com/upload/attachment/0102/6287/2771280b-1518-3d2f-b7c1-b6ae1f5f175f.png[/img]
可以通过双击launch4j.jar运行
例子目录:
[img]http://dl2.iteye.com/upload/attachment/0102/6291/1aaa28f8-745a-3db0-b124-fd13bb207209.png[/img]
配置界面:
基本配置:
[img]http://dl2.iteye.com/upload/attachment/0102/6293/b91e3c3c-5528-3f82-b23a-1010e842f859.png[/img]
JRE地址配置后:
[img]http://dl2.iteye.com/upload/attachment/0102/6295/5d9d5bb8-cc6e-30cd-a656-8c0b75197b49.png[/img]
自动生成的配置文件:
<launch4jConfig>
<dontWrapJar>false</dontWrapJar>
<headerType>gui</headerType>
<jar>E:\AllPlugins\Lag4j\launch4j\demo\CapitalManager\jar\capitalLibManager.jar</jar>
<outfile>E:\AllPlugins\Lag4j\launch4j\demo\CapitalManager\capitalLibManager.exe</outfile>
<errTitle></errTitle>
<cmdLine></cmdLine>
<chdir></chdir>
<priority>normal</priority>
<downloadUrl>http://java.com/download</downloadUrl>
<supportUrl></supportUrl>
<customProcName>false</customProcName>
<stayAlive>false</stayAlive>
<manifest></manifest>
<icon>E:\AllPlugins\Lag4j\launch4j\demo\CapitalManager\ConsoleApp.ico</icon>
<jre>
<path>./jre</path>
<minVersion></minVersion>
<maxVersion></maxVersion>
<jdkPreference>preferJre</jdkPreference>
</jre>
</launch4jConfig>