Replacing Oracle JRE with AdoptOpenJDK for TrueSight Presentation Server
You can configure TrueSight Presentation Server to use AdoptOpenJDK 8. Download AdoptOpenJDK 8 and use the script that is packaged with the TrueSight Presentation Server 11.3.02 or 11.3.03 installer to replace Oracle JRE with AdoptOpenJDK 8.
The script performs the following tasks:
- Stop the TrueSight Presentation Server.
- Take a backup of the Oracle JRE.
- Replace the Oracle JRE with AdoptOpenJDK.
Copy the jre\lib\security\cacerts file from Oracle JRE to AdoptOpenJDK.
- Start the services (Windows) or processes (Linux).
Prerequisites
Ensure that:
- The product home environment variable is set.
- The user who installed the product runs the AdoptOpenJDK script.
You have downloaded the 64-bit files of AdoptOpenJDK 8 from AdoptOpenJDK and extracted the downloaded files to a temporary directory.
To run the script
Do the following:
- Navigate to the TrueSight Presentation Server installation directory that contains the AdoptOpenJDK script:
- Windows: <presentation_server_installer_directory>\Windows\utilities
- Linux: <presentation_server_installer_directory>/Linux/utilities
- Use the following command to run the AdoptOpenJDK script:
- (Windows) Update_Adopt_JRE_For_TSPS.bat
- (Linux) ./Update_Adopt_JRE_For_TSPS.sh
- When you are prompted to restart the component, type y to continue.
- When prompted, specify the path where you extracted the AdoptOpenJDK files. For example, C:\AdoptOpenJDK
The script replaces the Oracle JRE with the Adopt JRE and starts the services or processes. - To verify the changes, perform these steps:
- Navigate to the following directory:
- Windows: %TRUESIGHTPSERVER_HOME%\truesightpserver\modules\jre
- Linux: $TRUESIGHTPSERVER_HOME/truesightpserver/modules/jre
- Run the following command:
- Windows: java.exe -version
- Linux: java -version
- Navigate to the following directory:
- Verify that your TrueSight Presentation Server is 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 Oracle JRE
If the AdoptOpenJDK script runs into an error and cannot create the AdoptOpenJDK JRE folder, do the following to restore the Oracle JRE:
- Stop all services or processes if they are running.
- Take a backup of the current JRE folder.
- Rename the jre_oracle_* folder as jre.
- Start the services and processes.