简体   繁体   English

如何使用便携式 JRE 执行 package 可执行 jar?

[英]How can you package an executable jar with a portable JRE?

I want to be able to distribute by executable JAR without having to make the user upgrade to the latest version of the JRE.我希望能够通过可执行 JAR 分发,而不必让用户升级到最新版本的 JRE。 How can I package a JRE into the JAR so that they can run the jar with no JRE installed on their system?我如何将 package 一个 JRE 插入 JAR 以便他们可以在系统上未安装 JRE 的情况下运行 jar?

Put Java Portable in a sub-directory and launch your jar using a batch/bash script or Launch4j .Java Portable放在子目录中,然后使用批处理/bash 脚本或Launch4j 启动 jar

As you need a jre to execute a jar, I'm afraid this is not possible.由于您需要一个 jre 来执行 jar,恐怕这是不可能的。

I have once used izpack together with launch4j to make a Windows EXE that would install a jre with my application.我曾经使用izpacklaunch4j制作了一个 Windows EXE,它将在我的应用程序中安装一个 jre。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何指定JRE来运行可执行jar - how to specify JRE to run a executable jar 使用便携式JRE在USB上运行Jar文件 - Run Jar File on USB with Portable JRE 如何将可执行JAR文件打包到EXE中 - How to package executable JAR file into EXE 如何用jar文件打包JRE,以便在Java独立机器上运行 - how to package JRE with jar file so as to run on Java independent machine 在没有JRE的计算机上运行JAR。 使其便携 - Running JAR in a computer that has no JRE. Making it portable 如何创建一个可执行的 jar 文件,该文件可以执行同一 package 中其他 java 类的方法 - how to create a executable jar file which can execute the methods from other java classes in same package 如何从包含 JRE 的 jar for mac os(使用 windows 或 linux)创建可执行文件 - How to create an executable file from a jar for mac os (using windows or linux) with a JRE included 如何 package React 前端与 Spring 启动并运行可执行文件 jar? - How to package React front end with Spring Boot and run the executable jar? 如何导出带有Eclipse库的jar文件? (不是可执行的jar) - How can i export a jar file with libraries in eclipse? (Not executable jar) ProcessBuilder 在可执行 jar 中的 jar 包作为资源 - ProcessBuilder on a jar package in an executable jar as resources
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM