Eclipse reported "Failed to load JNI shared library"

JavaEclipseJava Native-Interface

Java Problem Overview


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 Solutions


Solution 1 - Java

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 https://stackoverflow.com/questions/5103366/how-to-find-out-if-an-installed-eclipse-is-32-or-64-bit-version

Solution 2 - Java

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.

Solution 3 - Java

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.

Solution 4 - Java

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

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionBocercusView Question on Stackoverflow
Solution 1 - JavaE-RizView Answer on Stackoverflow
Solution 2 - JavaNamilaView Answer on Stackoverflow
Solution 3 - JavaDavidView Answer on Stackoverflow
Solution 4 - JavaAnkitView Answer on Stackoverflow