Eclipse: JVM shared library does not contain the JNI

Eclipse 4.4.0 on Mac OSX 10.9, JVM 8 gives an alert when I try to run it:

"The JVM shared library "/Library/Java/JavaVirtualMachine/jdk1.8.0_20.jdk/Contents/Home/bin/.../jre/lib/server/libjvm.dylib" does not contain the JNI_CreateJavaVM symbol"

The application does not start.

I edited the Info.plist per Shan's instructions of 8/25, but I still get the same error.

I've also downloaded & installed Java from Apple's web site, but I still get the same error.

thanks for the help.


If you are installing eclipse with the Eclipse installer, this can happen when the installer is not pointed to the correct jvm location.
You can correct it as follows.

1. Right click the installer file and select 'show package contents'
2. Go to Contents and open Info.plist
3. At the bottom of this file, you'll see a commented section with the tag <string>-vm</string> with some paths. You can set the correct JAVA_HOME path there and uncomment that section. (running echo $JAVA_HOME in console will get you the current setting)

链接地址: http://www.djcxy.com/p/22614.html

上一篇: UIView宽高比混淆了systemLayoutSizeFittingSize

下一篇: Eclipse:JVM共享库不包含JNI