You can change which JDK DS is using as follows:
- 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.
- 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.