1. 程式人生 > >lDEA:解決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

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

Exception in thread "main" 。

解決方法:修改jre

估計是新建java專案時選錯了jre,可以選擇自己本地安裝的jre,當然如果你IDEA預設配置的jre沒錯的情況下,是不會出現這種錯誤。