Replacing Oracle JRE with OpenJDK for Application Server
You can replace Oracle JRE that is installed in your environment with OpenJDK using the script attached to this page. You must replace Oracle JRE with OpenJDK on all the systems where Application Server components are installed. When you run the script, it performs the following tasks:
- Stopping the Application Server processes.
- Backing up the Oracle JRE folder.
- Creating a symbolic link to the OpenJDK folder.
Starting the Application Server processes.
TrueSight Capacity Optimization supports only 64-bit OpenJDK.
- The BCO_HOME environment variable is set.
- The logged in user can run TrueSight Capacity Optimization.
To replace Oracle JRE with OpenJDK
Log in to the system where TrueSight Capacity Optimization is installed.
Download the 64-bit files of OpenJDK 8 from this website:
Extract the files to a temporary directory.
- Download the attached script file to a temporary directory.
- To run the script, do the following:
Change to the directory that contains the downloaded script file.
Run the command:
When you are prompted, specify the path of the folder where you extracted the OpenJDK files in step 3, and press Enter.
A confirmation message about the JRE change is displayed after some time.
- To verify the changes, do the following:
- Change to this directory: $BCO_HOME/jre/bin
- Run the command to confirm the OpenJDK version:
- Verify that the Application Server processes are up and running.
To troubleshoot issues that might occur while running the script, see Troubleshooting issues with the OpenJDK script.
To restore the backed-up JRE
If the script runs into an error, do the following to restore your backed-up Oracle JRE:
- Stop the Application Server processes.
- Back up the current jre folder.
- Rename the jre_oracle folder as jre.
- Start the Application Server processes.