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

Posted 软件工程小施同学

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Error: A JNI error has occurred, please check your installation and try again相关的知识,希望对你有一定的参考价值。

是因为编译用的javac版本,和运行用的java版本不一致,产生的报错。IDEA编译时,默认使用的jdk是自带的,CMD中的jdk是按照path中配置的,两个版本不同。需要修改idea中编译套件。

"ctrl+shift+alt+s" , 打开project settings,修改project使用的JDK和SDK

修改之后重新编译jar,可正常运行

 

https://bigfu.cn/?p=54

以上是关于Error: A JNI error has occurred, please check your installation and try again的主要内容,如果未能解决你的问题,请参考以下文章

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

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

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

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

使用java命令出现Error: A JNI error has occurred, please check your installation and try again的错误

Error: A JNI error has occurred, please check your installation and try again的全面解决方法