Java command line uses a JNI error has occurred, please check your installation and try again

Error: a JNI error has occurred, please check your installation and try again
exception in thread “main” java.lang.UnsupportedClassVersionError : Demo 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

solution:
jre8u164 was installed once before in the system, and jdk11.0.2 was installed without uninstalling. It is estimated that there is a conflict. Just delete jre8u164.

Extended content

For the concepts and differences of JDK, JRE, Java se, Java EE and java me, please refer to https://www.cnblogs.com/In-order-to-tomorrow/p/3652315.html


Read More: