OPatch failed with error code = 1 : Exception in thread "main" java.lang.NoClassDefFoundError: <class_name>

(Doc ID 1454917.1)

Last updated on JUNE 01, 2015

Applies to:

Oracle Universal Installer - Version 10.2.0.1 to 11.2.0.3 [Release 10.2 to 11.2]
Information in this document applies to any platform.

Symptoms

Any OPatch command (for example, "opatch version") fails with the following type of errors:

Error 1:

Exception in thread "main" java.lang.NoClassDefFoundError: <xxx>\<yyyy>
OPatch failed with error code = 1

For example:

Exception in thread "main" java.lang.NoClassDefFoundError: Files\Common
OPatch failed with error code = 1

Error 2:

 

$ORACLE_HOME\OPatch>opatch lsinventory
Exception in thread "main" java.lang.NoClassDefFoundError: Files

OPatch failed 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