Failed to load the JNI shared Library (JDK)

前端 未结 30 2360
自闭症患者
自闭症患者 2020-11-22 07:09

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

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

Follow

相关标签:
30条回答
  • 2020-11-22 07:58

    Simple, I have a 64-bit OS, 32-bit Eclipse and both JDK 32 & 64 installed... I just uninstalled the 64-bit JDK and Eclipse is working fine..

    0 讨论(0)
  • 2020-11-22 07:59

    The answers above me got me tempted so much, that I decided to dry run all the possible combinations with OS, Eclipse and JVM trio. Anyway, whoever is digging down and reading my post, check the following as a hot spot (I am Windows 7 user).

    1. You understand Program Files and Program File (x86) are two different folders... x86 stands for the 32-bit version of programs and the former is the 64-bit version.

    2. If you have multiple versions of Java installed with different bitness and release versions, which is bound to happen with so many open source IDEs, managers, administrative consoles, the best option is to set the VM argument directly in the eclipse.ini file. If you don't, Eclipse will go crazy and try searching itself which is not good.

    0 讨论(0)
  • 2020-11-22 07:59

    Thank you misterfrb, I realised that Eclipse was giving this error, because I had just installed Oracle 10g Developer suite, and it was looking for the jvm.dll file in the C:\DevSuiteHome_1 folder (I must have opted to install JDK again along with developer suite).

    After removing the DevSuiteHome lines from the paths variable and adding the correction location for 64-bit jvm.dll (not sure if this was necessary, didn't try without), Eclipse worked again, and Developer suite still does too.

    0 讨论(0)
  • 2020-11-22 07:59

    I want to previde another solution for this error, especially for who want to use 32-bit and 64-bit Eclipse in one system.

    Eclipse will startup using the JRE/JDK in jre sub-directory if it exists. (STS or other eclipse based IDE also support this feature...)

    The solution is create directory junction using mklink.exe command which exist in windows vista or newer version (junction.exe offer similar function for Windows 2000/XP)
    Open the command line windows and exeute following command:

    mklink /j "$ECLIPSE-HOME/jre" "$JDK_or_JRE_home"

    Of course, if the Eclipse is for 64-bit Windows, the architecture of JDK/JRE must be the same.

    Assume:

    • Eclipse for windows x86_64 is installed in d:\devTool\eclipse
    • JDK for windows x64 is installed in C:\Program Files\Java\jdk1.8.0

    The command for creating the jre folder will be:

    mklink /j "d:\devTool\eclipse\jre" "C:\Program Files\Java\jdk1.8.0"

    BTW, delete directory junction will NOT delete any file. If you create a wrong link, you can delete it using file explorer or rmdir command.

    rmdir "d:\devTool\eclipse\jre"

    0 讨论(0)
  • The same occurred to me. I had 64-bit Eclipse, but my JDK was 32-bit. So I installed the 64-bit version and it's OK right now.

    0 讨论(0)
  • 2020-11-22 08:02

    I had same problem

    I resolved it by installing 64 bit JVM from

    http://www.java.com/en/download/manual.jsp

    0 讨论(0)
提交回复
热议问题