[Solved] eclipse Error: Error:A JNI error has occurred, please check your installation and try again

Error in the first run of the project:

Solution:

Right click the item -> Properties-> Java Compiler

Step 3: select the corresponding JDK version and recompile and run the project.

Read More: