Replacing Oracle JRE with AdoptOpenJDK for TrueSight Presentation Server
You can configure TrueSight Presentation Server to use AdoptOpenJDK 8. You can download AdoptOpenJDK 8 and use the script that is packaged with the TrueSight Presentation Server installer to replace Oracle JRE with AdoptOpenJDK 8.
The script performs the following tasks:
- Stopping the TrueSight Presentation Server.
- Taking a backup of the Oracle JRE.
- Replacing the Oracle JRE with AdoptOpenJDK.
Coping the jre\lib\security\cacerts file from Oracle JRE to AdoptOpenJDK.
- Starting 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.
To run the script
Do the following:
Download the 64-bit files of AdoptOpenJDK 8 from this location: AdoptOpenJDK
- Extract the downloaded files to a temporary directory.
- Navigate to the directory that contains the AdoptOpenJDK script:
- Windows: <installer_directory>\Windows\utilities
- Linux: <installer_directory>/Linux/utilities
- Use one of the following commands 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.
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*