eclipse报错Error:A JNI error has occurred, please check your installation and try again

eclipse报错Error:A JNI error has occurred, please check your installation and try again
eclipse报错Error:A JNI error has occurred, please check your installation and try again
百度搜索是java编译器和eclipse设定的编译器版本不一样,有两种解决办法
1)ctrl+R 输入cmd,打开控制行 输入java -version,再次输入javac -version版本不一样的需要修改,在这里我的都是1.8
eclipse报错Error:A JNI error has occurred, please check your installation and try again所以再试试方法2
2)右击项目 -> 选择properties -> 选择java compiler 设置版本为1.8
eclipse报错Error:A JNI error has occurred, please check your installation and try againeclipse报错Error:A JNI error has occurred, please check your installation and try again

再次编译运行项目就可以了 ????