My Oracle Support Banner

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

Last updated on JULY 24, 2023

Applies to:

Oracle Fusion Middleware - Version 12.1.3.0.0 and later
Oracle WebLogic Server - 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=/<PATH>/weblogic
export JAVA_HOME=/<PATH>/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:

 

Changes

 

Cause

To view full details, sign in with your My Oracle Support account.

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


In this Document
Symptoms
Changes
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.