Possible Duplicate:
Java Stacktrace error Unsupported major.minor version 51.0
I am using eclipse, and every time I try to run a program in Linux that uses visuals, I get the following errors and it doesn’t display anything in the applet. In Windows, everything runs just fine. I have tried re-installing the JDK and the JRE, but to no avail. Furthermore, I have tried the advice from the following links:
I am running Bodhi Linux, which is based on Ubuntu.
I am getting following error:
java.lang.UnsupportedClassVersionError: GraphicsSkeletton : Unsupported major.minor version 51.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:634)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:277)
at java.net.URLClassLoader.access$000(URLClassLoader.java:73)
at java.net.URLClassLoader$1.run(URLClassLoader.java:212)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
at java.lang.ClassLoader.loadClass(ClassLoader.java:314)
at sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:146)
at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
at sun.applet.AppletClassLoader.loadCode(AppletClassLoader.java:608)
at sun.applet.AppletPanel.createApplet(AppletPanel.java:798)
at sun.applet.AppletPanel.runLoader(AppletPanel.java:727)
at sun.applet.AppletPanel.run(AppletPanel.java:380)
at java.lang.Thread.run(Thread.java:679)
Any help would be much appreciated.
As an Example you have compiled your source codes in java 1.5 and you are trying to run them in java 1.6
Check your java version
will give you java version you are using