views:

1229

answers:

3

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
A: 

It's not Possible Anil Agrawal d]

A: 

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

Kevin Thiart