OSX Eclipse installer does not contain the JNI_CreateJavaVM symbol error

By | June 16, 2018

If you are trying to install Eclipse and you get the following error:

The JVM shared library “/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/../lib/server/libjvm.dylib”
does not contain the JNI_CreateJavaVM symbol.

You want to:

  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>. Change it to point to the location of Java.

For example, my one was: string>-vm</string><string>/Library/Java/JavaVirtualMachines/jdk1.8/Contents/Home/bin/java</string>

so I changed it to: string>-vm</string><string>/Library/Java/JavaVirtualMachines/jdk1.8.0_171.jdk/Contents/Home/bin/java</string>

Don’t forget to uncomment it as well. If you are not sure of your location of Java, run echo $JAVA_HOME in terminal to find out.

Leave a Reply

Your email address will not be published. Required fields are marked *