Hello folks, I am completely new to java and I don't know anything about programming.
I have started with the application "HelloWorldApp" and I have bypassed the problem that javac was not a recognized command.
Now I have HelloWorld App.class, but when I try to run it on the prompt it says:
C:\Users\Acer\Desktop>java HelloWorldApp
Exception in thread "main" java.lang.UnsupportedClassVersionError: HelloWorldApp
: Unsupported major.minor version 52.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknow n Source)
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.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 sun.launcher.LauncherHelper.checkAndLoadMain(Unkno wn Source)
I have on my pc both jdk1.8.0 and jdk1.7.0. I changed the classhpath on the control panel to both jdk1.7.0 and 1.8.0 but the problem continues. I run windows 7, 64 bit system. Please help me.
Alex