I compiled a java file and tried to launch it with javac
but it doesn't work. I tried to update JDK to the newest version, but received this error:
Error: A JNI error has occurred, please check your installation and try again
Exception in thread "main" java.lang.UnsupportedClassVersionError: Main has
been compiled by a more recent version of the Java Runtime (class file version
56.0), this version of the Java Runtime only recognizes class file versions up
to 52.0