zoukankan      html  css  js  c++  java
  • 在64位Win7环境+64位JDK下,运行64位Eclipse,提示“Failed to load the JNI shared library”错误,提示jvm.dll不对

    -startup
    plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
    --launcher.library
    plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.100.v20110502
    -product
    org.eclipse.epp.package.java.product
    --launcher.defaultAction
    openFile
    --launcher.XXMaxPermSize
    256M
    -showsplash
    org.eclipse.platform
    -vm
    D:Program FilesJavajdk1.7.0_05injavaw.exe
    --launcher.XXMaxPermSize
    256m
    --launcher.defaultAction
    openFile
    -vmargs
    -Dosgi.requiredJavaVersion=1.5
    -Xms40m
    -Xmx384m
    

     D:Program FilesJavajdk1.7.0_05injavaw.exe路径注意

    原网址http://www.cnblogs.com/hellowj/archive/2012/07/21/2603066.html

    -Xms40m
    -Xmx384m可以改大点项目运行内存-Xms215m -Xmx512m

    然而博主的eclipse的版本貌似是x86的当时没注意就改了
    附上原eclipse.ini文件
    -startup
    plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
    --launcher.library
    plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.200.v20120913-144807
    -product
    org.eclipse.epp.package.jee.product
    --launcher.defaultAction
    openFile
    --launcher.XXMaxPermSize
    256M
    -showsplash
    org.eclipse.platform
    --launcher.XXMaxPermSize
    256m
    --launcher.defaultAction
    openFile
    -vmargs
    -Dosgi.requiredJavaVersion=1.5
    -Dhelp.lucene.tokenizer=standard
    -Xms40m
    -Xmx512m
    
    
    

     然后又找到它。。。

    一、打开eclipse目录下的配置文件eclipse.ini。

       二、将--launcher.library和-startup下面的路径都改为当前的正确路径。

    如我的eclipse的存放路径由D:ProgramFiles改为D:,则将路径里eclipse前的“Program Files”去掉即可。

    如果要在eclipse打开时显示工作路径对话框,则有两种解决方法:

    方法一、关闭Eclipse并打开eclipse的安装目录,依次打开以下目录,configuration.settings文件夹下有一个文件org.eclipse.ui.ide.prefs,用记事本打开,将下列红色字符改为true即可:SHOW_WORKSPACE_SELECTION_DIALOG=true

    方法二、设置方法如下:依次打开Window -> Preferences-> General -> Startup and Shutdown 。然后勾选Confirmexit when closing last window复选框即可。或者点击Restore Defaults按钮。

    另外我在Stack Overflow Community上查到导致该问题的原因是非常过的,其中包括Windows系统自身问题(这个可能需要系统修复)。还有就是压缩软件问题,比如外国的有个名字为“7-zip”的压缩工具解压eclipse压缩包极可能会导致该问题,建议就是使用WinRAR压缩工具。至于为什么,应该是某些压缩软件会导致解压后的文件系统发生变化。

    using cygwin and gunzip or unzip to set up youreclipse environment the permissions on the .exe and .dll files will beincorrect and the JVM will not run them properly.

    使用cygwin和gunzip或解压缩设置您的eclipse环境.exe和.dll文件的权限将不正确,JVM将不会运行它们正确)

    我的解决方案:先确保JDK的环境变量配置成功,然后重新下载另一个版本的eclipse,使用WinRAR解压,运行成功

     
    流年拓荒者
  • 相关阅读:
    MongoDB
    Redis:C#使用Redis
    最大化 AIX 上的 Java 性能,第 4 部分: 监视流量
    最大化 AIX 上的 Java 性能,第 3 部分: 更多就是更好
    最大化 AIX 上的 Java 性能,第 2 部分: 速度需求
    最大化 AIX 上的 Java 性能,第 1 部分: 基础
    阿里面试重点总结
    函数库学习入门指引
    OracleAWR删除历史快照说明
    ActiveMQ实现负载均衡+高可用部署方案(转)
  • 原文地址:https://www.cnblogs.com/lnthz/p/7647818.html
Copyright © 2011-2022 走看看