Skip to main content
  1. About
  2. For Teams

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

Required fields*

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?

Answer*

Cancel
9
  • 9
    This solves the problem. I added the -vm C:\Program Files\Java\jdk1.6.0_32\bin\javaw.exe line to my eclipse.ini file and it started up just fine. Thanks for the help +1.
    prolink007
    –  prolink007
    2012-09-10 13:36:26 +00:00
    Commented Sep 10, 2012 at 13:36
  • 1
    this work fine please check your version of Java, run java -version in a console and Check that this is the version being used by Eclipse or not
    jayesh kavathiya
    –  jayesh kavathiya
    2012-10-10 09:48:34 +00:00
    Commented Oct 10, 2012 at 9:48
  • 2
    I did this with my Java 6 SDK, and it didn't work. I tried it again, pointing to my Java 7 SDK, and it worked. I'm on Windows 8 64-bit, Java 6 and 7 (both 64-bit) and Eclipse Helios (32-bit). I was ready to uninstall and re-install Eclipse 64-bit, but it seems the java 7 SDK includes some new intelligence to run 32 bit apps better.
    Ryan Shillington
    –  Ryan Shillington
    2013-01-09 15:40:27 +00:00
    Commented Jan 9, 2013 at 15:40
  • 9
    this works. but need to put -vm in the top of the ini file; at least before -vmargs or --launcher.xxx
    pinkdawn
    –  pinkdawn
    2013-03-27 01:33:50 +00:00
    Commented Mar 27, 2013 at 1:33
  • 3
    Very Very Important point that I missed. If you use like: "-vm C:\ProgramFiles\Java\jdk1.6.0_32\bin\javaw.exe" it will never work Correct way "-vm C:\Program Files\Java\jdk1.6.0_32\bin\javaw.exe" New line after the -vm is very important.
    School Boy
    –  School Boy
    2013-12-27 02:11:23 +00:00
    Commented Dec 27, 2013 at 2:11

Morty Proxy This is a proxified and sanitized view of the page, visit original site.