今天java程序run出现Error: A JNI error has occurred, please check your installation and try again

Exception in thread "main" 。

解决方法:修改jre

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

估计是新建java项目时选错了jre,可以选择自己本地安装的jre,当然如果你IDEA默认配置的jre没错的情况下,是不会出现这种错误。

相关文章: