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

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

解决方法:修改jre

lDEA报错Error: A JNI error has occurred, please check your installation and try again
估计是新建java项目时选错了jre,可以选择自己本地安装的jre,当然如果你IDEA默认配置的jre没错的情况下,是不会出现这种错误。