Tag Archives: JAVA problem Solving

A JNI error has occurred, please check your installation and try again

1. The question is:
A JNI error has occurred once again, please check your installation and try again

 
2. Analysis:
The JDK was installed repeatedly and there were different versions on the computer
 
3. Solution:
The command line through “Java-version” and “Javac-version” query SDK version
Delete the unwanted version (uninstall in the control panel)
(3) Adjust the environment variable to leave the JDK related information
Recompile to see whether there is still an error
 
4. The validation:
Javac is the same version as the Java directive