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:
- Right click the installer file and select ‘show package contents’
- Go to Contents and open Info.plist
- 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.
The installer is on a read-only filesystem and if I move it to my desktop, I’m told the installer is corrupt.