Failed to load the JNI shared Library (JDK)

前端 未结 30 2888
自闭症患者
自闭症患者 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 08:10

    Make sure your eclipse.ini file includes the following lines.

    -vm
    C:\path\to\64bit\java\bin\javaw.exe
    

    My eclipse.ini for example:

    -startup
    plugins/org.eclipse.equinox.launcher_1.1.1.R36x_v20101122_1400.jar
    --launcher.library
    plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.2.R36x_v20101222
    -product
    org.eclipse.epp.package.java.product
    --launcher.defaultAction
    openFile
    --launcher.XXMaxPermSize
    256M
    -showsplash
    org.eclipse.platform
    -vm
    C:\Program Files\Java\jdk1.6.0_32\bin\javaw.exe
    --launcher.XXMaxPermSize
    256m
    --launcher.defaultAction
    openFile
    -vmargs
    -Dosgi.requiredJavaVersion=1.5
    -Xms40m
    -Xmx512m
    

    Use OS and Eclipse both 64 bit or both 32 bit keep same and config eclipse.ini.

    Your eclipse.ini file can be found in your eclipse folder.

提交回复
热议问题