JAVA_HOME not set error while using opatch command
This is very common error we see while using opatch command, whether you are using it for listing the patches or using it for applying the patches. So how to fix it ?
Error : JAVA_HOME is not set or does not exist
I see there are two ways to fix this error.
1) Explicitly set the JAVA_HOME value by
export JAVA_HOME=<JAVA_PATH>
pls make sure dont include bin the JAVA_PATH value
example as below :
Now try executing the command. Hopefully it will fix the issue.
if not, pls follow the alternate procedure given below
2) There is a parameter (-jre) we shall pass it while executing the opatch command. It will get you the desired result.
example as below :
opatch lspatches -jre <java-path>
Comments
Post a Comment