天天看點

Eclipse指定JDK版本 Failed to load the JNI shared JVM.dll

Eclipse指定JDK版本 Failed to load the JNI shared JVM.dll

打開eclipse.ini添加

-vm

C:/Java/jdk1.6.0_02/bin

參考:http://my.oschina.net/liangzhenghui/blog/277647

Failed to load the JNI shared JVM.dll

原因1:給定目錄下jvm.dll不存在。

對策:(1)重新安裝jre或者jdk并配置好環境變量。(2)copy一個jvm.dll放在該目錄下。

原因2:eclipse的版本與jre或者jdk版本不一緻