Format whole PC and reinstall
I just started learning Java and i compiled a simple program which prints out the word "Hello world" in cmd. When i try to run the program using the following command "java Hello" i get an error message that states the following: Error: A JNI error has occurred, please check your installation and try again
Exception in thread "main" java.lang.UnsupportedClassVersionError: Hello has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 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)
And before calling me retarded i've looked for a newer version of JRE and i couldn't find anything above version 8, if there is a newer release of JRE please point me to it.
Format whole PC and reinstall
It usually means that one If your resource jars is compiled with a version of Java that�s not compatible with the jre that you are using to execute the bytecode. Check to see which class files and jar files are accessible on your class path.
[code]
System.out.println(�class.path�);
[code]