Failed to load the JNI shared library on starting Eclipse

I downloaded the latest version of Eclipse, but I can not start it.

The error message I get is:

Failed to load the JNI shared library “C:\Program Files (x86)\Java\jdk1.6.0_20\bin..\jre\bin\client\jvm.dll”.

How do I fix this?

I use 64-bit Windows, 32-bit JDK, and downloaded 64-bit Eclipse.

Answer

This usually happens if you have a 32- vs. 64-bit mismatch between the installed JDK and Eclipse versions!

Your version of Eclipse is trying to access a 32-bit JDK (as indicated by C:\Program Files (x86)), but either fails because Eclipse is expecting a 64-bit JDK or because the 32-bit JDK is missing – consequently you’ll need to make sure to match the Eclipse and JDK versions bit wise accordingly.

Attribution
Source : Link , Question Author : Jonas , Answer Author : Steffen Opel

Leave a Comment