My Oracle Support Banner

Unsupported Java Version When Running createDSInEngineRoot.sh (Doc ID 2007452.1)

Last updated on JANUARY 28, 2020

Applies to:

Oracle Demantra Demand Management - Version 12.2.5 and later
Information in this document applies to any platform.

Symptoms

Customer is on 12.2.4.1 and mentions that they are configuring the engine on Oracle Linux 5
They run the createDSinEngineRoot.sh but it fails with the following

*************************
appdmtc1@xxxx bin$ ./createDSInEngineRoot.sh
Supply DB Host Name
xxxx
Supply schema name(username)
demantra
Supply schema password for demantra
xxxxxxx
Supply SID/SERVICE_NAME
vcpcrp
Supply Database Port
1526
executing : ../../tools/ds_config.sh DBMS=ORA servername=xxxx Tnsname=xxxx logid=demantra logpassword=xxxxxxxx Database=vcpcrp DBPorT=1526 file=/ds.ini
Oracle Demantra Data Source Configuration Tool

Using JAVA_HOME: /u01/dmtcrp/jdk

Check If Got Java Version 1.5.0_XX OR 1.6.0_XX.
Unsupported Java Version, Please check your PATH value or set JAVA_HOME to the right
version.

***************************************

Upon checking the ds.ini file it seems to be hard coded to look for either Java 1.5 or 1.6 else will give the said above message:

  Set the path to the JDK java file.

JAVA_EXEC=$_JAVA_HOME/bin/$JAVA_EXEC

echo "Check If Got Java Version $_JAVA_VER_5""_XX OR $_JAVA_VER_6""_XX."

  Get an indication whether the current running java version is 1.5.0

IS_15_VERSION="`$JAVA_EXEC -fullversion 2>&1 | grep $_JAVA_VER_5`"

  Get an indication whether the current running java version is 1.6.0

IS_16_VERSION="`$JAVA_EXEC -fullversion 2>&1 | grep $_JAVA_VER_6`"

  Check if the current running java version is one of the checked above.

if || ; then
echo Current Java Version Supported.
echo
else
echo "Unsupported Java Version, Please check your PATH value or set JAVA_HOME to the right
version."
echo
exit
fi

However 12.2.4.1 is supported with Java 1.7 and customer has Java 1.7 on the server where they are deploying the engine and the environment variables point to the JDK 1.7

Changes

 

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
Changes
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.