I am trying to run some java code using putty. I have all the jar files I need in a folder and when in the folder with the 'classname.class' folder I try to run the file but I get the following error.
Exception in thread "main" java.lang.UnsupportedClassVersionError: dueDate (Unsupported major.minor version 49.0) at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:489) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:104) at java.net.URLClassLoader.defineClass(URLClassLoader.java:245) at java.net.URLClassLoader.access$1(URLClassLoader.java:211) at java.net.URLClassLoader$1.run(URLClassLoader.java:192) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:186) at java.lang.ClassLoader.loadClass(ClassLoader.java:294) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:290) at java.lang.ClassLoader.loadClass(ClassLoader.java:250) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:310)
I don't know what this error means and how I should go about fixing it. I used eclipse to program it and 'jdk-6u14'. Any help would be much appreciated.
Putty is using java version '1.2.2'
Thanks for the answers. How do you cange it to use a newer version of Java?