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:
- Eclipse can’t open an error: Error:could not find java SE Runtime Environment/Error: could not find java.dll
- “Error: a JNI error has occurred” and “error of” jvm.cfg To solve the problem
- Installation failed with message Invalid File:
- error:could not open…jvm.cfg solution
- Error: opening registry key ‘Software\JavaSoft\Java Runtime Environment’
- Eclipse startup error: a Java runtime environment (JRE) or Java Development Kit (JDK) must be available
- Error running Eclipse: failed to load the JNI shared library
- Pycharm2020.3 startup error internal error
- Error reporting when Lombok @ data and @ builder are used together
- Difference between vs code user and system version
- Error: cudaGetDevice() failed. Status: CUDA driver version is insufficient for CUDA runtime version
- Error: could not find or load main class
- A JNI error has occurred, please check your installation and try again
- Access restriction in Eclipse: the type ‘xxx’ is not API solution
- The app failed to start because there is no Qt platform to initialize
- Start Eclipse and pop up the “Failed to load the JNI shared library jvm.dll” dialog box
- Bad pen notes: solution to leaving blank folder on launchpad after Adobe product is uninstalled by MacOS
- Java and Android commons codec usage and nosuch method error
- When Dbeaver starts on Mac, it reports an error: “fail to create java virtual machine”
- Error: could not find java.dll Error: could not find Java se runtime environment solution