ERROR: A JNI error has occurred, please check your installation and try again
Because there are many different versions of JDK installed on the computer, I don't know which version to use when I run the Java program with Notepad, so I get an error.
Uninstall unnecessary redundant JDK and keep the stable JDK version (see personal wishes here, you can keep the latest version of the JDK if you like the latest version, but the more stable JDK version is version 1.8, it is recommended (Retain version 1.8)
① Manual uninstallation: If you do not know the installation path of the redundant JDK, you can do as follows:
Right click on the computer icon---->>click on properties---->>advanced system settings---->>find the environment variables and click enter---->>find the JDK installation path in the system variables; in Find and delete in the folder.
②The java official website has a special uninstall tool, which is more convenient to use
Note: After successfully deleting the redundant JDK, you need to check whether the environment variable configuration is correct.
cmd---->>and then input:
javac.exe to check whether it is successful.