Search code examples
javawindowseclipsejava-native-interface

Failed to load the JNI shared Library (JDK)


When I try opening Eclipse, a pop-up dialog states:

Failed to load the JNI shared library "C:/JDK/bin/client/jvm.dll".

Following this, Eclipse force closes.

Here are a few points I'd like to make:

  • I checked to see if anything exists on that path. It does exist.
  • My Eclipse and Java SE Development Kit are both 64-bit. I checked my system, and it can handle 64-bit.
  • I've searched for this problem on Google and StackOverflow, and the only answer I found was to download the 32-bit versions of JDK and Eclipse.

Downloading the 32-bit versions is something I only want to do as a very last resort.
What would be suggested to solve this issue?


Solution

  • You need a 64-bit trio:

    • 64-bit OS
    • 64-bit Java
    • 64-bit Eclipse