Changing the JVM Version
Included with Native Installers
There are so many variants of the JVM that the
easiest way to create a JVM bundle that meets your needs is to
let JExpress build it.
-
Copy the bundlejvm.jar file to the OS which
has the JRE that you want to distribute to a temporary directory.
This file is in the installation directory of
JExpress.
You may not create a JVM bundle for Mac OS X because Apple
does not permit you to distribute their JVM.
-
Double click on the bundlejvm.jar
or issue the command java -jar bundlejvm.jar.
-
If the directory name for the JVM is not the version that you
want to bundle, then use the Brose button to move to the correct
version's parent directory.
The JRE's parent directory contains the bin
and lib subdirectories.
-
Enter the version for the Java distribution.
Be sure this is the same
as when you type the "java -version" in the Java home directory.
- Click OK.
- Be patient while the bundle is created.
- Click the Exit button when it appears.
-
The bundlejvm created 2 new files, custom.platform.properties and the
jvm bundle in the directory where your ran it. Move these 2 new files
back to the computer where you run JExpress to build your installers.
-
The files must be stored in the appropriate platforms
subdirectory. For example, if you just built the jvm bundle for Linux
32 bit system, then you'd move custom.platform.properties and jrelnx-x32.bin
to the platforms/Linux subdirectory of your JExpress install directory.
Notes:
- You can have different JVM versions for each OS, but you
cannot have different JVM versions for the same OS.
In other words, the 32 bit and 64 bit JVMs for a given OS, must be
the exact same version. For example, you would
not want to create a JVM bundle for the Windows 32 bit JVM that is 1.6.0_18
and a JVM bundle for the Windows 64 bit JVM that is 1.6.0_22.
- If you are running JExpress on a Windows 7 or
Windows Vista machine, then there are 2 "platforms" subdirectory trees. One
is in the JExpress install directory (the standard place) and there is
another copy in the \Users\Public\Public documents\JExpressBuilder subdirectory.
Move the files into this "public" subdirectory, not the install directory.
- Restart JExpress.