Eclipse reported “Failed to load JNI shared librar

2019-01-07 05:18发布

Possible Duplicate:
Failed to Load the JNI shared Library (JDK)

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

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

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

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.

But where is the JRE 7 link?

标签: java eclipse jni
4条回答
甜甜的少女心
2楼-- · 2019-01-07 05:29

Yep, in Windows 7 64 bit you have C:\Program Files and C:\Program Files (x86). You can find Java folders in both of them, but you must add C:\Program Files\Java\jre7\bin to environment variable PATH.

查看更多
倾城 Initia
3楼-- · 2019-01-07 05:35

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).

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

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?

查看更多
Emotional °昔
4楼-- · 2019-01-07 05:48

Installing a 64-bit version of Java will solve the issue. Go to page Java Downloads for All Operating Systems

This is a problem due to the incompatibility of the Java version and the Eclipse version both should be 64 bit if you are using a 64-bit system.

查看更多
够拽才男人
5楼-- · 2019-01-07 05:54

JRE 7 is probably installed in Program Files\Java and NOT Program Files(x86)\Java.

查看更多
登录 后发表回答