ErrorA JNI error ha occurred,please check your installation and try again

Error:A JNI error ha occurred,please check your installation and try again

ErrorA JNI error ha occurred,please check your installation and try again

ErrorA JNI error ha occurred,please check your installation and try again

这个错误在Eclipse中编译时出现,网上说可能的原因是java和javac的版本不一致这篇博客可能对你有用

当你的java -verion和javac -version版本一致时:

ErrorA JNI error ha occurred,please check your installation and try again

进入Eclipse,选中项目点击鼠标右键,选择Build Path/Add libraries……

ErrorA JNI error ha occurred,please check your installation and try again

进行如下操作

ErrorA JNI error ha occurred,please check your installation and try again
ErrorA JNI error ha occurred,please check your installation and try again
确保这个界面不报错就行

ErrorA JNI error ha occurred,please check your installation and try again

第一次没成功的话多换几个JRE的Library试试

无用的可以移除

ErrorA JNI error ha occurred,please check your installation and try againErrorA JNI error ha occurred,please check your installation and try again