Failed to load the JNI shared Library (JDK)

前端 未结 30 2452
自闭症患者
自闭症患者 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:48

    For a missing jvm.dll file, we can provide the path of the dll file in eclipse.ini file as

    -vm
    C:\Progra~1\Java\jdk1.6.0_38\jre\bin\server\jvm.dll
    

    Here it is important to remove any space in the path and the double quotes. It worked for me when i removed the quotes and space.

    I hope it helps someone.

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

    Yes, just make sure your versions of Eclipse and JDK are both 64-bit. Just to make sure everything is correct uninstalled JDK and install it in Program Files and not in Program Files (x86). At least that resolved my problem.

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

    You need a 64-bit trio:

    • 64-bit OS
    • 64-bit Java
    • 64-bit Eclipse
    0 讨论(0)
  • 2020-11-22 07:52

    It is crucial to add the -vm parameter and its value on 2 lines AT THE BEGINNING of the eclipse.ini

    -vm C:\Program Files\Java\jdk1.7.0_45\bin\javaw.exe

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

    If you use whole 64-bit trio and it still doesn't work (I've come to this problem while launching Android Monitor in Intellij Idea), probably wrong jvm.dll is being used opposed to what your java expects. Just follow these steps:

    1. Find the jvm.dll in your JRE directory: C:\Program Files\Java\jre7\server\bin\jvm.dll

    2. Find the jvm.dll in your JDK directory: c:\Program Files\Java\jdk1.7.0_xx\jre\bin\server\

    3. Copy the jvm.dll from JRE drectory into your JDK directory and overwrite the jvm.dll in JDK.

    Don't forget to make a backup, just in case. No need to install or uninstall anything related to Java.

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

    I'm not sure why but I had the jre installed into my c:\windows directory and java.exe and javaw.exe inside my windows\system32 directory.

    Obviously these directories were getting priority even AFTER adding the -vm flag to my eclipse.ini file.

    Delete them from here fixed the issue for me.

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