My Oracle Support Banner

Opatch Errors: "Java could not be located. OPatch cannot proceed!.OPatch failed with error code = 1" (Doc ID 417177.1)

Last updated on MARCH 30, 2021

Applies to:

Oracle Database - Standard Edition - Version 9.2.0.1 to 11.2.0.3 [Release 9.2 to 11.2]
Oracle Database - Enterprise Edition - Version 9.2.0.1 to 11.2.0.3 [Release 9.2 to 11.2]
Oracle Database Cloud Schema Service - Version N/A and later
Oracle Database Exadata Express Cloud Service - Version N/A and later
Oracle Database Exadata Cloud Machine - Version N/A and later
Microsoft Windows x64 (64-bit)
Microsoft Windows (32-bit)
Checked for relevance on 29-MAY-2012

Symptoms

"opatch lsinventory” command is giving the error :

>set ORACLE_HOME=<ORACLE_HOME_LOCATION> 
><ORACLE_HOME_LOCATION>\opatch\opatch lsinventory

The system cannot find the path specified.
File Not Found
FINDSTR: Cannot open \oui\oraparam.ini
Java could not be located. OPatch cannot proceed!

OPatch failed with error code = 1

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
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.