How To
ForgeRock Identity Platform
Does not apply to Identity Cloud

How do I change DS (All versions) to use a different JDK version?

Last updated Apr 8, 2021

The purpose of this article is to provide information on changing DS to use a different version of the JDK, if for example, you have upgraded your Java® environment. This article assumes you have already successfully upgraded your Java environment.


1 reader recommends this article

Changing JDK version

You can change which JDK DS is using as follows:

  1. Update the default.java-home property in the java.properties file (located in the /path/to/ds/config directory). You can either specify an exact version or latest:
    • Exact version - specify the path of the correct JDK version. For example, if you are using Java 8 Update 45, the updated property would look similar to this: default.java-home=/usr/lib/jvm/jdk1.8.0_45/jreIf you take this approach, you will need to update this property each time you upgrade your Java environment.
    • Latest - specify latest so that the latest version of the JDK is always used: default.java-home=/usr/java/latestIf you take this approach, you will only need to restart DS to take account of an upgraded Java environment in the future.
  2. Restart the DS server.

See How do I ensure DS (All versions) uses the Java settings from java.properties file when starting? for further information on the java.properties file.

See Also

How do I ensure DS (All versions) uses the Java settings from java.properties file when starting?

How do I collect JVM data for troubleshooting DS (All versions)?

How do I tune DS (All versions) process sizes: JVM heap and database cache?

How do I enable Garbage Collector (GC) Logging for DS (All versions)?

Related Training

ForgeRock Directory Services Core Concepts (DS-400)

Related Issue Tracker IDs

N/A


Copyright and Trademarks Copyright © 2021 ForgeRock, all rights reserved.