当我尝试打开Eclipse时,弹出对话框显示:

加载JNI共享库“C:/JDK/bin/client/jvm.dll”失败。

在此之后,Eclipse部队关闭。

以下是我想说的几点:

我查了下那条路径上有没有东西。它确实存在。 我的Eclipse和Java SE Development Kit都是64位的。我检查了我的系统,它可以处理64位。 我在谷歌和Stack Overflow上搜索过这个问题,我找到的唯一答案是下载32位版本的JDK和Eclipse。

下载32位版本是我想做的最后一件事。 如何解决这个问题?


当前回答

上面的答案让我很感兴趣,所以我决定演练一下OS、Eclipse和JVM三人组的所有可能组合。无论如何,无论谁正在深入研究和阅读我的帖子,检查以下作为一个热点(我是Windows 7用户)。

You understand Program Files and Program File (x86) are two different folders... x86 stands for the 32-bit version of programs and the former is the 64-bit version. If you have multiple versions of Java installed with different bitness and release versions, which is bound to happen with so many open source IDEs, managers, administrative consoles, the best option is to set the VM argument directly in the eclipse.ini file. If you don't, Eclipse will go crazy and try searching itself which is not good.

其他回答

解决这个问题的一个简单方法是将jre文件夹从已安装的JDK复制到Eclipse安装文件夹中。确保您复制的JDK与Eclipse安装的体系结构相同。

我必须这样配置我的机器,因为我在我的机器上同时运行Eclipse和Appcelerator Titanium Studio。Studio需要32位Java,而Eclipse需要64位Java。

简单,我有一个64位的操作系统,32位的Eclipse和JDK 32和64安装…我刚刚卸载了64位JDK和Eclipse工作正常。

从站点下载64位JVM,手动安装并更新系统路径变量。这就解决了问题。

默认JVM安装在我的系统在“C:\程序文件 (x86) \ Java \ jre7” 手动安装的JVM已经安装 “C:\Program Files\Java\jre7”,并将此pate更新到系统后 路径变量,它工作。

最简单的解决方案是在eclipse.ini中包含一个特定的JRE:

wiki.eclipse.org/Eclipse.ini

有了它,您几乎可以启动任何Eclipse版本

是的,只要确保您的Eclipse和JDK版本都是64位的。为了确保一切正确,卸载JDK并将其安装在程序文件中,而不是安装在程序文件(x86)中。至少这解决了我的问题。