launch4j使用

将java jar 打包成exe 的软件,目前用的较多的又exe4j、 install4j、 launch4j......

launch4j为java开发的, 所以大多数人更倾向于这个生成exe快捷方式,同时也支持ant编写,内嵌jre。

目录结构:



可以通过双击launch4j.jar运行


例子目录:



配置界面:
基本配置:


JRE地址配置后:



自动生成的配置文件:
<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>









猜你喜欢

转载自tianqiushi.iteye.com/blog/2149585
今日推荐