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版本不一致

对策:要么两者都安装64位的,要么都安装32位的,不能一个是32位一个是64位。

原因2的概率更大一些,原因1不太可能发生

参考:http://blog.csdn.net/zyz511919766/article/details/7442633/

原文地址:https://www.cnblogs.com/stono/p/4993559.html