简体   繁体   English

"加载 JNI 共享库失败"

[英]Failed to load JNI shared library

When I am trying to start my STS editor, I received a message as pop-up window open and said that当我尝试启动我的 STS 编辑器时,我收到一条消息,弹出窗口打开并说

Failed to load the JNI shared library "C:\\Program Files\\Java\\jdk1.7.0\\bin...\\jre\\bin\\server\\jvm.dll无法加载 JNI 共享库“C:\\Program Files\\Java\\jdk1.7.0\\bin...\\jre\\bin\\server\\jvm.dll

Here i am posting my STS.ini below.在这里,我在下面发布我的 STS.ini。

-vm
C:\Program Files\Java\jdk1.7.0_21\bin
-startup
plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
–launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.100.v20110502
-product
com.springsource.sts.ide
–launcher.defaultAction
openFile
–launcher.XXMaxPermSize
384M
-vmargs
-Dosgi.requiredJavaVersion=1.6
-Xmn128m
-Xms256m
-Xmx768m
-Xss4m
-XX:PermSize=128m
-XX:MaxPermSize=384m
-XX:CompileThreshold=1000
-XX:+CMSIncrementalPacing
-XX:+UnlockExperimentalVMOptions
-XX:+UseG1GC
-XX:+UseFastAccessorMethods

I am using Windows 7 64bit and my eclipse was 32 bit.我使用的是 Windows 7 64 位,而我的 Eclipse 是 32 位。 i face the problem showing this message when want to open my eclipse当我想打开我的 Eclipse 时,我遇到了显示此消息的问题

Failed to load the JNI shared library "C:\Program Files\Java\jdk1.7.0\bin...\jre\bin\server\jvm.dll

The -vm option must specify the full absolute or relative path to the Java executable , not just to the Java home directory. -vm 选项必须指定Java 可执行文件的完整绝对或相对路径,而不仅仅是 Java 主目录。 In Windows that would be:在 Windows 中,这将是:

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

Also I would move the -vm option to be immediately before the -vmargs option:此外,我会将-vm选项移到-vmargs选项之前:

...
–launcher.XXMaxPermSize
384M
-vm
C:\Program Files\Java\jdk1.7.0_21\bin\javaw.exe
-vmargs
-Dosgi.requiredJavaVersion=1.6
...

More details can be found here: http://wiki.eclipse.org/Eclipse.ini#Specifying_the_JVM更多细节可以在这里找到: http ://wiki.eclipse.org/Eclipse.ini#Specifying_the_JVM

Upgrade the jdk version to 1.8 or above.升级jdk版本到1.8以上。 It works有用

"

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM