eclipse “ Failed to load the JNI shared library……jvm.dll” 解决方案
来源:互联网 发布:java ioc原理 编辑:程序博客网 时间:2024/06/11 00:13
我遇到问题的来源:
重装系统win7 32->64,把原来的eclipse拷过来(以前听说eclipse免安装,而且不管电脑是什么位的),装了java64位(不装eclipse不启动),没把jre放在jdk路径底下。结果打开eclipse就出现那个错误。
小知识:
jre6\bin\server\ 在 jre6\bin\server\ (与这个没关)
主要参考:
http://jackzlz.iteye.com/blog/1463499 (解决的思路来源)
http://book.51cto.com/art/201101/242837.htm (为Eclipse添加新的JDK环境)
经过搜资料,大多说是因为java与eclipse不兼容——可我坚信eclipse与位数无关。
解决办法:
将以前的32位的jre放入eclipse的目录下(它会自动加载),于是eclipse启动。然后在window->preference->java ->installed jres
那里面谁上面有 对勾 就加载谁 于是 可以新建一个加载64位的jre。 VM 中写入 -xmx200M 据说可以用虚拟内存,请参考第二个网址s
我的问题就这样解决了。
补充:
如何配置java环境变量 参考http://bbs.csdn.net/topics/300146671
Java的环境变量配置:
(两种方法任选一种皆可)
方法一:
依次点击:“我的电脑”-(右键)“属性”-“高级”-“环境变量”,弹出Windows的“环境变量”配置卡。
在“系统变量”栏下执行三项操作:
①新建“Classpath”(如果已有,则直接编辑),设置其值为 .;JDK所在的绝对路径值\lib
(例如 .;D:\Program Files\Java\jdk1.5.0_04)(若值中原来有内容,用分号与之隔开),
注意路径前的符号为.;不能漏掉
②新建“Path”(如果已有,则直接编辑),设置其值为 %Java_Home%\bin; (若值中原来有内容,用分号与之隔开)。
方法二:
依次点击:“我的电脑”-(右键)“属性”-“高级”-“环境变量”,弹出Windows的“环境变量”配置卡。
在“系统变量”栏下执行三项操作:
①新建“Java_Home”,设置其值为 JDK所在的绝对路径(例如 D:\Program Files\Java\jdk1.5.0_04)。
②新建“Classpath”(如果已有,则直接编辑),设置其值为 .;%Java_Home%\lib (若值中原来有内容,用分号与之隔开)。
注意路径前的符号为.;不能漏掉
③新建“Path”(如果已有,则直接编辑),值: %Java_Home%\bin; (若值中原来有内容,用分号与之隔开)。
- eclipse “ Failed to load the JNI shared library……jvm.dll” 解决方案
- 启动Eclipse 弹出Failed to load the JNI shared library jvm.dll解决方案
- 启动 Eclipse 弹出“Failed to load the JNI shared library jvm.dll”错误的解决方案
- Android Failed to load the JNI shared library jvm.dll
- Failed to load the JNI shared library jvm.dll
- Failed to load the JNI shared library jvm.dll
- Failed to load the JNI shared library jvm.dll
- Failed to load the JNI shared library jvm.dll
- Failed to load the JNI shared library jvm.dll
- Failed to load the JNI shared library jvm.dll
- failed to load the jni shared library client jvm.dll
- Failed to load the JNI shared library jvm.dll 解决
- failed to load the JNI shared library ....jvm.dll
- Eclipse运行时提示“Failed to load the JNI shared library /Java/jre6/bin/client/jvm.dll”的一个解决方案
- Eclipse运行时提示“Failed to load the JNI shared library /Java/jre6/bin/client/jvm.dll”的一个解决方案
- failed to load the jni shared library:“……jre\bin\client\jvm.dll”
- 启动 Eclipse 弹出“Failed to load the JNI shared library jvm.dll”错误的解决方法!
- Eclipse无法打开“Failed to load the JNI shared library jvm.dll”
- c++构造函数和析构函数调用规则
- 很详细的Jquery 操作Table
- DWR使用总结
- opencv中cvCalibrateCamera2()的函数细解
- windows7 下安装MongoDB
- eclipse “ Failed to load the JNI shared library……jvm.dll” 解决方案
- 学长谈面试经验
- CVPR 2013 reading list
- hdu 1867 A + B for you again
- java.net 类 URLEncoder
- 解决编译Apache出现的问题:configure: error: APR not found . Please read the documentation
- asp.net(C#)开发之一 dataset(datatable) 数据导入excel
- clientWidth、clientHeight 在各大浏览器中的获取方法
- myBatis 基础测试 增 删 改 查 用过hibrenate 之后,感觉很好理解