Eclipse: JVM Shared Library Does Not Contain JNI_CreateJavaVM Symbol

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

"JVM Joint Library" / Library / Java / JavaVirtualMachine / jdk 1.8.0_20.jdk / Contents / Home / bin /.../ jre / lib / server / libjvm.dylib "does not contain the symbol JNI_CreateJavaVM"

The application does not start.

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

I also downloaded and installed Java from the Apple website, but still getting the same error.

thanks for the help.

+7
java eclipse jvm macos
source share
1 answer

If you install eclipse using the Eclipse installer, this can happen if the installer did not specify the correct jvm location.
You can fix it as follows.

1. Right-click the installer file and select "show package contents"
2. Go to the "Content" section and open Info.plist
3. At the bottom of this file you will see a comment with the tag <string>-vm</string> with some paths. You can set the correct JAVA_HOME path and uncomment this section. (running echo $JAVA_HOME in the console will give you the current setup)

+3
source share

All Articles