PostRank

2009/09/06

如何解決Invalid java version found

When attempting to run ./adconfig.sh, the following error occurs:
$ adautocfg.sh

Enter the APPS user password:
AutoConfig is configuring the Database environment...
 
AutoConfig will consider the custom templates if present.
       Using ORACLE_HOME location : /d01/PROD/proddb/8.1.7
ERROR: Invalid java version found:
       jre was not found in /usr/java/jdk1.5.0_16/bin/i686/green_threads/jre
 
ERROR: Invalid java version found:
       jre was not found in /usr/java/jdk1.5.0_16/bin/i686/green_threads/jre
 
       Classpath                   :
 
Version Conflicts among development maintained and customized templates encountered; aborting AutoConfig run.

Cause

$JAVA_HOME misdirects adconfig to the wrong jre.

Solution

Simply issue the following command:

   unset JAVA_HOME

Then you can run adconfig.sh without the above error.
 
 
$ echo $JAVA_HOME
/usr/java/jdk1.5.0_16
 
$ JAVA_HOME=/d01/PROD/proddb/8.1.7/JRE
$ export JAVA_HOME
$ echo $JAVA_HOME
/d01/PROD/proddb/8.1.7/JRE
$ adautocfg.sh

 
 

沒有留言: