Eclipse报告“无法加载JNI共享库” [英] Eclipse reported "Failed to load JNI shared library"

查看:1329
本文介绍了Eclipse报告“无法加载JNI共享库”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


可能重复:

无法加载JNI共享库(JDK)

我无法打开Eclipse,因为我收到一条警告说

I can't open Eclipse because I get an alert that says


无法加载JNI共享库C: \\ Program Files(x86)\eclipse\jre\bin\client\jvm.dll

Failed to load JNI shared library C:\Program Files (x86)\eclipse\jre\bin\client\jvm.dll

我发现YouTube上的一种解决方案, Eclipse无法加载JNI库修复程序

I've found a kind of solution on YouTube, Eclipse Failed to load JNI library fix.

他说你只需下载一个 JRE 7文件夹。然后我只需要替换
C:\Program Files(x86)\Java\jre7\bin\server\jvm.dll C:\程序文件(x86)\eclipse\jre\bin\client\jvm.dll

He says that you only have to download a JRE 7 folder. Then I just have to replace C:\Program Files (x86)\Java\jre7\bin\server\jvm.dll with C:\Program Files (x86)\eclipse\jre\bin\client\jvm.dll.

但是JRE 7链接在哪里?

But where is the JRE 7 link?

推荐答案

首先,确保您的Eclipse和JDK版本匹配,无论是64位还是32位,您都不能混合使用64位64位。

First, ensure that your version of Eclipse and JDK match, either both 64-bit or both 32-bit (you can't mix-and-match 32-bit with 64-bit).

其次,-vm参数在 eclipse.ini 应该指向java可执行文件。请参阅
http://wiki.eclipse.org/Eclipse.ini 的示例。

Second, the -vm argument in eclipse.ini should point to the java executable. See http://wiki.eclipse.org/Eclipse.ini for examples.

如果您不确定安装了哪个版本(64位或32位)的Eclipse,您可以通过几种不同的方法来确定。请参阅如何查找如果安装的Eclipse是32或64位版本?

If you're unsure of what version (64-bit or 32-bit) of Eclipse you have installed, you can determine that a few different ways. See How to find out if an installed Eclipse is 32 or 64 bit version?

这篇关于Eclipse报告“无法加载JNI共享库”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆