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?
+1
A:
As you need a jre to execute a jar, I'm afraid this is not possible.
I have once used izpack together with launch4j to make a Windows EXE that would install a jre with my application.
Maurice Perry
2009-03-20 06:33:16
A:
Put Java Portable in a sub-directory and launch your jar using a batch/bash script or Launch4j.
Kevin Thiart
2010-08-03 05:23:40