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 and later
Oracle Fusion Middleware - Version and later
Information in this document applies to any platform.


Following the normal steps to apply a patch using OPatch

export ORACLE_HOME=/home/weblogic
export JAVA_HOME=/usr/java/jdk1.7.0_141
cd <patch_name>
opatch apply

The following error occurs despite the JAVA_HOME is set:



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