I am new in java programming and now i am testing a helloworld code to test. I use the command
javac HelloWorld.java
in the console folder it's create a file HelloWorld.class
. When i am running the command java HelloWorld
i get
Error: A JNI error has occurred, please check your installation and try again Exception in thread "main" java.lang.UnsupportedClassVersionError: HelloWorld has been compiled by a more recent version of the Java Runtime (class file version 58.0), this version of the Java Runtime only recognizes class file versions up to 52.0 ...
I have to mention that i have JDK 14.0.2 installed and JRE ( for minecraft and server :) )