ERROR: Invalid java version found while running adcfgclone.pl command
Solution:
cp -r $ORACLE_HOME/jdk/ $ORACLE_HOME/appsutil/jre/
re run adcfgclone.pl" command
Reasons
The perl program "ouicli.pl" is unable to locate the JDK installation. This could be due to any of the following reasons:
1) There is no JDK/JRE installed under the "/appsutil/jre/bin" directory.
2) There is a problem, such as file corruption, with the JDK.
3) The value of "s_adjvaprg" in the Context File is set to an invalid location.
SOLUTION
1. Ensure there is a working "java" executable under "/appsutil/jre/bin":
$ cd $ORACLE_HOME/appsutil/jre/bin
$ ./java -version
java version "1.6.0_07"
Java(TM) SE Runtime Environment (build 1.6.0_07-b06)
Java HotSpot(TM) Server VM (build 10.0-b23, mixed mode)
If the version information is returned, the JDK/JRE is working. This "java" executable file should be referenced directly in the Context File, as noted in step #2.
2. Check the value of "s_adjvaprg" in the Context File:
$ cd $ORACLE_HOME/appsutil/
$ grep s_adjvaprg *.xml (assumes there is only 1 ".xml" file)
$ORACLE_HOME/12102/appsutil/jre/bin/java
Note that the value of "s_adjvaprg" points to the full path to the java executable and includes the name of the executable, "java", as well.
3. If there is no "java" under "/appsutil/jre/bin", you will need to replace the "jre" directory and all sub-directories with a full JDK/JRE installation. Generally, you can find this under "$ORACLE_HOME/jdk"
$ cp -r $ORACLE_HOME/jdk/ $ORACLE_HOME/appsutil/jre/
4. If any changes have been made, now re-try the "adcfgclone.pl" command.
cp -r /erp_base/app/oracle/product/12.1.0.2/jdk/ /erp_base/app/oracle/product/12.1.0.2/appsutil/jre/
ERROR: Invalid java version found:
Solution: cp -r $ORACLE_HOME/jdk/ $ORACLE_HOME/appsutil/jre/
re run adcfgclone.pl" command