'opatch version' fails with error : Java (1.x) could not be located. OPatch cannot proceed!
(Doc ID 2571882.1)
Last updated on SEPTEMBER 16, 2021
Applies to:Oracle Database - Enterprise Edition - Version 18.104.22.168 and later
Information in this document applies to any platform.
Executing 'opatch version' failed with below error.
Java (1.6) could not be located. OPatch cannot proceed!
OPatch returns with error code = 1
The same command works only if we add the -jdk flag
OPatch Version: 22.214.171.124.17
Installed the latest opatch utility 126.96.36.199.17
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