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 to replace Oracle JRE with AdoptOpenJDK 8. The script performs the following tasks:

  1. Stopping the TrueSight Presentation Server.
  2. Taking a backup of the Oracle JRE.
  3. Replacing the Oracle JRE with AdoptOpenJDK.
  4. Coping the jre\lib\security\cacerts file from Oracle JRE to AdoptOpenJDK.

    The script restores the <product_home>/jre/lib/security/cacerts file from the Oracle JRE. However, ensure that you manually copy any other customizations for the Oracle JRE to AdoptOpenJDK.

  5. Starting the services (Windows) or processes (Linux).

TrueSight Presentation Server supports only 64-bit AdoptOpenJDK.

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:

Run the AdoptOpenJDK script using the command prompt. Do not double-click the script file.

  1. Download the 64-bit files of AdoptOpenJDK 8 from this location:  AdoptOpenJDK

  2. Extract the downloaded files to a temporary directory.

  3. Log in to this page to download the AdoptOpenJDK script and extract it to a temporary directory.
  4. Navigate to the directory that contains the extracted files of AdoptOpenJDK script.
  5. Use the command to run the AdoptOpenJDK script:
    • (WindowsUpdate_Adopt_JRE_For_TSPS.bat
    • (Linux) ./Update_Adopt_JRE_For_TSPS.sh
  6. When you are prompted to restart the component, type y to continue.
  7. When prompted, specify the path where you extracted the AdoptOpenJDK files in step 2. For example, C:\AdoptOpenJDK
    The script replaces the Oracle JRE with the Adopt JRE and starts the services or processes.
  8. To verify the changes, do the following:
    1. Navigate to the following directory:
      • Windows: %TRUESIGHTPSERVER_HOME%\truesightpserver\modules\jre
      • Linux: $TRUESIGHTPSERVER_HOME/truesightpserver/modules/jre
    2. Run the following command to confirm the Java version:
      • Windows: java.exe -version
      • Linux: java -version
  9. 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:

  1. Stop all services or processes if they are running.
  2. Take a backup of the current JRE folder.
  3. Rename the jre_oracle_* folder as jre.
  4. Start the services and processes.
Was this page helpful? Yes No Submitting... Thank you

Comments