java .class problems

Problems? Post here...
Post Reply
alien100
Fame ! Where are the chicks?!
Fame ! Where are the chicks?!
Posts: 693
Joined: 25 Sep 2006, 16:00
17
Location: Spartan HQ
Contact:

java .class problems

Post by alien100 »

i have this error message when i type in cmd java (name of program)](*,)

error

Code: Select all

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(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Sour
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Metho
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Sourc
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
its annoying :twisted:

how do i fix it ??
[img]http://img127.imageshack.us/img127/9128/sig3copyyybq4.jpg[/img]

User avatar
bad_brain
Site Owner
Site Owner
Posts: 11636
Joined: 06 Apr 2005, 16:00
19
Location: In your eye floaters.
Contact:

Post by bad_brain »

hm, this happens when the applet you want to run was compiled on a newer Java version than the one you have installed. I don't mean the SDK (service development kit), I mean the runtime environment (JRE). upgrade to the newest version and it should work fine:
http://www.java.com/en/download/index.jsp
best uninstall the old JRE first (not the SDK).
:wink:

alien100
Fame ! Where are the chicks?!
Fame ! Where are the chicks?!
Posts: 693
Joined: 25 Sep 2006, 16:00
17
Location: Spartan HQ
Contact:

Post by alien100 »

I fixed it
the problem was i had two different versions of JAVA runtime one build into the JDK and a different one in different direcotries so i had to remove the other one and stick with the one that is build into the JDK :D
[img]http://img127.imageshack.us/img127/9128/sig3copyyybq4.jpg[/img]

Post Reply