This article explains how Teamprise Explorer chooses a Java Runtime Environment (JRE) to use. Instructions for explicitly specifying a JRE are also given.
Teamprise Explorer is normally launched by running a native launcher executable (for example, TeampriseExplorer.exe on Windows). One of the things this launcher program does is to locate a Java Runtime Environment (JRE) for Teamprise Explorer. The native launcher normally selects the proper JRE to use and requires no additional configuration. However, in some cases you may need to explicitly specify a JRE to use, such as:
The launcher executable searches for a JRE by doing the following:
If the native launcher does not find a JRE using the above mechanism, an error dialog is displayed. For example, on Windows, the error dialog looks like:
Teamprise Explorer requires a Java 1.4 or higher runtime. If the native launcher finds a JRE, and that JRE is Java 1.3 or lower, an error dialog is displayed. For example, on Windows, the error dialog looks like:
The native launcher can take an optional switch that specifies the full path to a JRE to use. Explicitly specifying a JRE in this way overrides the JRE search mechanism described above.
For example, the following command on Windows will launch Teamprise Explorer to use the specified JRE
TeampriseExplorer.exe -vm c:\jre\bin\java.exe
A common configuration on Unix-style platforms is to create symlinked JRE directory in the Teamprise Explorer installation directory.
For example, assume the following:
The following command will create a symlinked JRE directory in the Teamprise Explorer install directory:
ln -s /home/user/jre1.5.0_06 /home/user/TeampriseExplorer/jre
When Teamprise Explorer is launched, the JRE in the symlinked directory will be used.
A similar effect can be achieved on Windows by copying a JRE directory into the Teamprise Explorer installation directory and naming it jre.
The Teamprise Explorer native launcher is a standard Eclipse launcher executable. You can view the Eclipse documentation for the launcher executable.