Specifying a different Java location for your application
Learn how to specify a different Java™ location for your application.
About this task
If your default environment does not point to the correct JRE, add the directory that contains the Java binary to the PATH environment variable in the Service section of the application profile. This adds the directory you specify to the beginning of your existing PATH environment variable.
In cases where you cannot guarantee that the PATH environment variable on a compute host:
- Includes a Java bin directory
- Has the path to the Java bin directory for the Java version you want to use
You can configure your System PATH to point to the correct Java version, or set the path to the correct version of Java in the application profile.
Note: If you change the configuration of your system path environment, you must restart IBM® Spectrum Symphony or IBM Spectrum Symphony Developer Edition.
If you set it in your application profile, the directory you specify is added to the beginning of your existing PATH environment variable.
Note: If you set the Java bin
path in your application profile, all compute hosts must have Java installed in the same location.
If Java is not installed at
that location, the system uses the next Java location
in the Path, if any.