Eclipse 运行导入的 Java 项目时,Error:A JNI error has occurred

出现场景
导入 Java 项目,运行时,出现:Error:A JNI error has occurred....

解决方式

该项目的 Build Path , 在Libraries 中删除后重新添加,Add Library.. -> JRE System Library -> Execution environment:JavaSE-1.8 。此时可以正常运行了。

原文地址:https://www.cnblogs.com/blueherb/p/10559320.html