如何将可执行JAR文件打包到EXE中 [英] How to package executable JAR file into EXE

查看:219
本文介绍了如何将可执行JAR文件打包到EXE中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我最好的方式是做什么?常见的做法是什么?

解决方案

Launch4j是一个跨平台的工具,用于将Java分布式应用程序包装在轻量级Windows本机可执行文件中。可执行文件可以配置为搜索某个JRE版本或使用捆绑的JRE版本,并且可以设置运行时选项,如初始/最大堆大小。包装器还可以通过应用程序图标,本机的JRE初始屏幕,自定义进程名称和Java下载页面提供更好的用户体验,以防无法找到适当的JRE。



http://launch4j.sourceforge.net/


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?

解决方案

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/

这篇关于如何将可执行JAR文件打包到EXE中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆