While running Oracle dmu.sh against 11gR2 db received Bad version number in .class file on rhel 6

While running Oracle dmu 2.1.1 against 11gR2 db received Bad version number in .class file.
Looks like the $ORACLE_HOME/jdk is version 1.5 and that is too old.

cd $ORACLE_HOME/dmu
[oracle@ol32 dmu]$ sh ./dmu.sh
Database Migration Assistant for Unicode
Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
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)

Downloaded a newer jdk – I took 1.8 and installed that.
It installed to /usr/java/jdk1.8.0_131
I then updated the dmu config as follows and Voila:

cd $ORACLE_HOME/dmu/dmu/bin
[oracle@ol32 bin]$ pwd
/u01/app/oracle/product/11.2.0/dbhome_1/dmu/dmu/bin
[oracle@ol32 bin]$ ls -al dmu.conf
-rw-r–r– 1 oracle oinstall 1488 May 22 12:01 dmu.conf
head dmu.conf

SetJavaHome /usr/java/jdk1.8.0_131

Leave a Comment

Scroll to Top