My Oracle Support Banner

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 and later
Information in this document applies to any platform.


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:
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:
4. Run the command-line <path>/OUD/bin/dsjavaproperties



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

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.