|
java.lang.UnsupportedClassVersionError: Bad version number in .class file
Hey,
Its a strange one, I have not edited Eclipse in anyway, but every time i try to compile my program i get the following error:
java.lang.NoClassDefFoundError: Draw
Exception in thread "main"
The program was working a week ago, I have no edited it at all i tried to run it the next day and this error came up.
I am now having to code in notepad and compile using the cmd, its really causing problems, does anybody have any idea what this error is and how to fix it?
oh it seems to not just be eclipse anymore, the cmd gave out the following stuff when i tried to run
C:\Documents and Settings\workspace\ProjectMobile>java GUI.java
Exception in thread "main" java.lang.NoClassDefFoundError: GUI/java
Caused by: java.lang.ClassNotFoundException: GUI.java
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
Last edited by littlemiss; 02-25-2008 at 03:25 PM..
|