dcsimg
java.lang.UnsupportedClassVersionError: Bad version number in .class file
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Tommaso_Agostinacchio
Posted On:   Sunday, February 10, 2008 06:27 AM

Hi all, I tried to run my program but I recieved this message: 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)    More>>


Hi all,
I tried to run my program but I recieved this message:



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 java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)

Exception in thread "main" can anyone help me, please?

   <<Less

Re: java.lang.UnsupportedClassVersionError: Bad version number in .class file

Posted By:   Abdel_Olakara  
Posted On:   Monday, February 18, 2008 03:41 AM

Hi,


Looks like you have compiled the java with a new version and you are executing the class file with an older java version.



Regards,

Abdel Olakara

http://technopaper.blogspot.com
About | Sitemap | Contact