My Oracle Support Banner

ORDS service script 22.x does not pick the correct Java (Doc ID 2890261.1)

Last updated on AUGUST 22, 2023

Applies to:

Oracle REST Data Services - Version 22.1 and later
Information in this document applies to any platform.

Symptoms

There is already a FMW 12.2.1.4 installation on the server, with default JDK8 in /usr/bin/java
Since ORDS 22.2 requires JDK11, this has been installed in a custom directory

export JAVA_HOME=/refresh/home/etc/jdk-11.0.15
export PATH=$JAVA_HOME/bin:$PATH

ORDS installed with rpm:
sudo rpm -i ords-22.2.0-6.el7.noarch.rpm
ords --config /etc/ords/config install
sudo systemctl enable ords

ORDS starts with manual command:
nohup /usr/local/bin/ords serve &

Trying to start ORDS with systemctl :
sudo systemctl start ords

fails with :

Error: ORDS requires Java 11 and above to run.
Found Java version 8.
Please set JAVA_HOME to appropriate version and update PATH if necessary.

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


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