如何使用便携式JRE打包可执行jar? [英] How can you package an executable jar with a portable JRE?

查看:114
本文介绍了如何使用便携式JRE打包可执行jar?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望能够通过可执行JAR进行分发,而无需让用户升级到最新版本的JRE。如何将JRE打包到JAR中,以便它们可以在系统上没有安装JRE的情况下运行jar?

I want to be able to distribute by executable JAR without having to make the user upgrade to the latest version of the JRE. How can I package a JRE into the JAR so that they can run the jar with no JRE installed on their system?

推荐答案

Put在子目录中 Java Portable 并使用批处理/ bash脚本或 Launch4j

Put Java Portable in a sub-directory and launch your jar using a batch/bash script or Launch4j.

这篇关于如何使用便携式JRE打包可执行jar?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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