OPatch returns with error code = 1

(Doc ID 1953231.1)

Last updated on JUNE 30, 2017

Applies to:

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

Symptoms

Trying to apply a patch with the opatch command fails with the following error:

$ opatch apply
/opt/weblogic/oui/bin//bin/java is not a valid executable for this platform. OPatch cannot proceed!
OPatch returns with error code = 1

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