Skip to Content
0

Opatch error "Exception in thread "main" java.lang.UnsupportedClassVersionError"

Jul 24, 2017 at 02:45 PM

192

avatar image

Hello,

I'm upgrading Oracle to 12.1 and I'm blocked with Opatch step.

I replaced Opatch by the last version for 12.1 but I continue to get an error when à try to use it. Command like "opatch version" give that :

E:\oracle\SID\12102\OPatch>opatch version
========================================================
GENERIC OPATCH VERSION - FOR USE IN SAP ENVIRONMENT ONLY
========================================================
Exception in thread "main" java.lang.UnsupportedClassVersionError: Bad version number in .class file
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)

OPatch failed with error code = 1

Is someone has an idea of what's wrong ?

Thanks !

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Fabian RICHARD Jul 24, 2017 at 03:17 PM
0

OK, stupid error ... and solution ... Variable ORACLE_HOME changed to the NEW_ORACLE_HOME but session not restated.

Share
10 |10000 characters needed characters left characters exceeded