Our steps to change which version of OpenJDK that Clarity will use are:
(if needed) Install the desired version of OpenJDK . You should check the release notes for your version of Clarity to assure the version of Java you want is compatible. You can download the latest version of OpenJDK here:
Note: The version you install must the same Version family that is supported for the version of Clarity you are using. The JVM type should be "HotSpot"
- Locate the home folder for the new version of Java JDK. We found 2 different ways to do this from a command prompt window. We’re looking for the folder name up to, but not including /bin/java.exe
- The Windows “dir /b/s java.exe” command
- The Windows “java -XshowSettings:properties -version” command
- Update the JAVA_HOME system environment variable.
- From Windows File Explorer right click on “My PC” and select “Properties”
- Click on “Advanced System Settings”
- Click on “Environment Variables”
- In the lower “System Variables” list locate the “JAVA_HOME” environment variable. Highlight it and click “Edit”.
- Change the value to be the new home folder for Java.
- To save and close click “OK” and then close the System properties window.
- Update the %CAPPM_HOME%\config\properties.xml file
- (if needed) Locate the folder where Clarity is installed with the “echo %CAPPM_HOME%” command.
- From Windows File Explorer navigate to the folder where CA PPM is installed. (In our case we found it at D:\CA\CAPPM.)
- Inside the “config” folder locate a file named “properties.xml” and edit this file with Notepad.
- Locate the line that begins with “<java home=…” and change the value for java home to the new home folder for Java.
- Save and close the file.
- (Stop if needed and) restart the Clarity services.
- (if needed) Close the command prompt window and open a new one so that it reflects the updated JAVA_HOME environment variable setting.
- Execute the “service stop start all” command to stop and restart the services.
Note: If the service command on step 4 is not successful and throws the following message "'java' is not recognized as an internal or external command....", download and install the jdk again and repeat the steps 3-5.