OUD Start or Restart Fails with "ERROR: The detected Java version could not be used with the set of Java"
(Doc ID 2739247.1)
Last updated on DECEMBER 20, 2022
Applies to:
Oracle Unified Directory - Version 12.2.1.3 and laterInformation in this document applies to any platform.
Symptoms
Restarting Oracle Unified Directory (OUD) fails with:
ERROR: The detected Java version could not be used with the set of Java
arguments -Xms6144m -Xmx6144m -d64 -XX:+UseCompressedOops -server -Xmn1g -XX:MaxTenuringThreshold=1 -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=60 -XX:+UseG1GC -XX:MaxGCPauseMillis=1000 -XX:ParallelGCThreads=20 -XX:ConcGCThreads=5 -XX:InitiatingHeapOccupancyPercent=70 -XX:+DisableExplicitGC.
The detected Java binary is:
<path>/java/jdk1.8.0_261/jre/bin/java
You must specify the path to a valid Java 8 version.
The procedure to follow is:
1. Delete the file <path>/OUD/lib/set-java-home if it exists.
2. Set the environment variable JAVA_HOME to the root of a valid
Java 8 installation.
If you want to have specific Java settings for each command line you must
follow the steps 3 and 4.
3. Edit the properties file specifying the Java binary and the Java arguments
for each command line. The Java properties file is located in:
<path>/OUD/config/java.properties.
4. Run the command-line <path>/OUD/bin/dsjavaproperties
arguments -Xms6144m -Xmx6144m -d64 -XX:+UseCompressedOops -server -Xmn1g -XX:MaxTenuringThreshold=1 -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=60 -XX:+UseG1GC -XX:MaxGCPauseMillis=1000 -XX:ParallelGCThreads=20 -XX:ConcGCThreads=5 -XX:InitiatingHeapOccupancyPercent=70 -XX:+DisableExplicitGC.
The detected Java binary is:
<path>/java/jdk1.8.0_261/jre/bin/java
You must specify the path to a valid Java 8 version.
The procedure to follow is:
1. Delete the file <path>/OUD/lib/set-java-home if it exists.
2. Set the environment variable JAVA_HOME to the root of a valid
Java 8 installation.
If you want to have specific Java settings for each command line you must
follow the steps 3 and 4.
3. Edit the properties file specifying the Java binary and the Java arguments
for each command line. The Java properties file is located in:
<path>/OUD/config/java.properties.
4. Run the command-line <path>/OUD/bin/dsjavaproperties
Cause
To view full details, sign in with your My Oracle Support account. |
|
Don't have a My Oracle Support account? Click to get started! |
In this Document
Symptoms |
Cause |
Solution |
References |