原因:jdk发生变化(新装了32位jdk),eclipse在启动时使用了 系统环境变量中的jdk路径(32位).

解决:只要把旧的64位的jre路径指定给eclipse启动文件即可。

在eclipse.ini中,第一行增加

-vm
D:/Server/Java64/jre7/bin/javaw.exe

Eclipse和MyEclipse启动时对jre依赖的区别:

  • myeclipse2013的启动依赖自身带的jre环境

#utf8 (do not remove)
-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.i18n.win32.win32.x86_64_3.2.0.v201103301700
-vm
binary/com.sun.java.jdk.win32.x86_64_1.6.0.u43/bin/javaw.exe
-install
D:\Server\MyEclipse2013
-vmargs
-Xmx512m
-XX:MaxPermSize=256m
-XX:ReservedCodeCacheSize=64m
-Dosgi.nls.warnings=ignore

  • eclipse的启动 要求安装jre,并首先考虑使用eclipse.ini指定的jre中的javaw.exe, 若找不到会在环境变量中的javaw.exe

-vm
D:/Server/Java64/jre7/bin/javaw.exe
-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.200.v20150204-1316
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vmargs
-Dosgi.requiredJavaVersion=1.6
-Xms40m
-Xmx512m

需要注意的是,eclipse版本若是32位的,那么jre也应该是32位的。也就是说要对应起来,不然无法启动的。

转载于:https://www.cnblogs.com/qq-757617012/p/4487114.html

解决Failed to load the JNI shared library xxx/xxx/jvm.dll 错误相关推荐

  1. Eclipse3.6.2 64位启动报“Failed to load the JNI shared library”错的解决方法

    Eclipse3.6.2 64位解压后双击运行eclipse,报"Failed to load the JNI shared library"错误. 如下图所示: 原来我的jdk是 ...

  2. 打开eclipse出现Failed to load the JNI shared library “D:\java\jdk\bin\...\jre\bin\server\jvm.dll”如何解决?

    eclipse打开的时候出现Failed to load the JNI shared library "D:\java\jdk\bin-\jre\bin\server\jvm.dll&qu ...

  3. 启动 Eclipse 弹出“Failed to load the JNI shared library jvm.dll”错误的解决方法!在eclipse.ini中为eclipse指定jdk启动...

    启动 Eclipse 弹出"Failed to load the JNI shared library jvm.dll"错误的解决方法! 原因1:给定目录下jvm.dll不存在. ...

  4. 【已解决】运行Eclipse出错:Failed to load the JNI shared library

    [问题] 运行Android的ADT,即Eclipse出错: Failed to load the JNI shared library C:\Program Files (x86)\Java\jre ...

  5. Failed to load the JNI shared library 的解决方法

    最近打开Eclipse报错,如下图: 原因: JDK与eclipse版本不兼容,会出现打开报错:Failed to load the JNI shared library............这个问 ...

  6. eclipse打开报错:Failed to load the JNI shared library

    1.启动eclipse出现如下报错: 弹出框显示:Failed to load the JNI shared library 2.出现原因以及解决办法: (1)原因1:JDK和eclipse位数不匹配 ...

  7. eclipse报错:Failed to load the JNI shared library

    Eclipse运行时提示"Failed to load the JNI shared library /Java/jre6/bin/client/jvm.dll"的一个解决方案 因 ...

  8. no java virtual machine was found after searching Failed to load the JNI shared library

    Eclipse打开出现"no java virtual machine was found...." 这个错误一般是环境变量设置错误导致 在cmd里面输入java -version ...

  9. 64位Eclipse运行时提示“Failed to load the JNI shared library \Java\jre6\bin\client\jvm.dll”的一个解决方案

    由于开发环境改变,改用64位Juno 64位 SP1环境替换了原来的Juno 32位.结果启动Eclipse报错: "Failed to load the JNI shared librar ...

最新文章

  1. EdgeGallery — AIO 离线部署 v1.5 版本
  2. 计算机设备全年销量excel,计算机二级MS-OFFICE考试EXCEL题型汇总附答案.pdf
  3. Windows 10怎么了?
  4. Apache Ivy
  5. Spring 4中@ControllerAdvice的改进
  6. 超级计算机游戏电脑,Salad邀请PC玩家参与全球最大分布式超级计算机的构建
  7. break和continue区别python_1、Python中break和continue的区别
  8. Alpha 冲刺 (6/10)
  9. 【Python笔记】网络爬虫——常用框架介绍以及 Scrapy 框架使用
  10. python安装-Python uWSGI 安装配置
  11. Mysql漏洞修复方法思路及注意事项
  12. 《Head First》 MVC运用的设计模式
  13. 多线程之volatile关键字
  14. Arduino Uno + HMC5883L电子罗盘 实验
  15. 【学习笔记】大数据可视化简介
  16. 1000句英语经典口语(3)
  17. spyder设置显示编码_OBS编码器选择“硬件(NVENC)”导致无法录屏解决办法
  18. 核磁谱图分析步骤_核磁一般氢谱和碳谱的解析步骤
  19. Java课程设计-仓库管理系统
  20. 华为笔面试经历-前端开发-2020年春招

热门文章

  1. 如何添加WebService调用时的用户认证
  2. win7局域网里输入正确密码也访问不了其他的机器
  3. 计算机考试忘记备注班级了,2012年计算机二级Access第二十五套上机试题及答案详解...
  4. tomcat有集成mysql嘛_jira+tomcat+mysql的集成
  5. (27)FPGA译码器设计(第6天)
  6. (15)System Verilog结构体struct详解
  7. FPGA状态机跑飞原因分析
  8. opencv在android,OpenCV 在 Android 中的应用
  9. 用标准C语言初始化线性表,C语言数据结构-顺序线性表的实现-初始化、销毁、长度、查找、前驱、后继、插入、删除、显示操作...
  10. iconv 判断字符编码_php下用iconv函数转换字符编码的问题