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

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

问题描述

我想将我的最终版本部署为带有应用程序图标的 EXE.

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 是一种跨平台工具,用于将作为 jar 分发的 Java 应用程序包装在轻量级 Windows 本机可执行文件中.可执行文件可以配置为搜索某个 JRE 版本或使用捆绑版本,并且可以设置运行时选项,例如初始/最大堆大小.包装器还通过应用程序图标、本机预 JRE 启动画面、自定义进程名称和 Java 下载页面提供更好的用户体验,以防找不到合适的 JRE.

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天全站免登陆