Getting OPatch Error 'JAVA_HOME Is Not Set Or Does Not Exist' When Applying Patch for WLS (Doc ID 2265317.1)

Last updated on MAY 18, 2017

Applies to:

Oracle WebLogic Server - Version 12.1.3.0.0 and later
Oracle Fusion Middleware - Version 12.1.3.0.0 and later
Information in this document applies to any platform.

Symptoms

Following the normal steps to apply a patch using OPatch

unzipped pxxxxxxxx_121300_Generic.zip
export ORACLE_HOME=/home/weblogic
export JAVA_HOME=/usr/java/jdk1.7.0_141
export PATH=$ORACLE_HOME/OPatch:$JAVA_HOME/bin:$PATH
cd <patch_name>
opatch apply

The following error occurs despite the JAVA_HOME is set:

 

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms