Does somebody know how to pack a particular JRE together with a compiled Java application? I currently have an executable jar file and wish to put JRE 6 Update 31 in it. So
A rather new solution, provided by Oracle, is here:
Self contained packaging
It reads:
Self-contained application packages provide the following benefits:
Users install the application with an installer that is familiar to them and launch it in the usual way.
You control the version of the JRE used by the application.
Applications can be deployed on fresh systems with no requirement for the JRE to be installed.
But a drawback of this approach is:
Self-contained application packages can only be built using JDK 7 Update 6 or later.