Skip to Content
0
Former Member
Jan 24, 2011 at 06:08 PM

Excetion "UnsupportedClassVersionError: Bad version number in .class file"

235 Views

Hi,

Actually I am new to BO Java SDK. When i try to run the java class file from the cmc, the instance shows sucess.But the log generated on the Unix throws an exception. I checked the versions on the job server (Its JDK 1.5) and where i am developing my code and compiling is Eclipse (It has also JDK 1.5). But the thing is why i am getting this kind of exception (UnsupportedClassVersionError: Bad version number in .class file).Could anyone help me in solving this exception.

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:620)

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:306)

at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)

at java.lang.ClassLoader.loadClass(ClassLoader.java:251)

at com.crystaldecisions.sdk.plugin.desktop.program.internal.ProgramWrapper.main(ProgramWrapper.java:49)

Thanks,

Ohm