Reputation: 81
Launching the Eclipse mac installer 64 bit (Eclipse Installer.app downloaded from http://www.eclipse.org/downloads/index-developer.php?oxygen) on Mac OS Sierra 10.12.3 fails and displays the alert message :
The JVM shared library "/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/../lib/server/libjvm.dylib" does not contain the JNI_CreateJavaVM symbol.
My System Preference panel tells me that I have the recommended version of Java (Java 8 update 121).
I tried different things as suggested on different posts (including Eclipse won't start after installing Mac OS X Yosemite (Mac OS 10.10)) :
Thanks for your help.
Upvotes: 1
Views: 8465
Reputation: 3979
The following was added in the whatever.app/Contents/Info.plist
<key>Eclipse</key>
<array>
<string>-vm</string
<string>/Users/<yourHomeDir>/.sdkman/candidates/java/11.0.2-open/bin/java</string>
<string>-keyring</string>
<string>~/.eclipse_keyring</string>
</array>
Note that, I experienced this issue while using Eclipse Mat and JDK Mission Control On Mac OS v11.6 (Big Sur ) ,the dependency was Java 11 .
Upvotes: 1
Reputation: 81
I solved the problem by editing the file Contents/Info.plist stored within the Eclipse Installer.app (that you can actually open as a standard folder).
I uncomented this line specifying the vm location
<string>-vm</string><string>/Library/Java/JavaVirtualMachines/1.8.0.jdk/Contents/Home/bin/java</string>
and I replaced the name of the jdk folder by the one I actually have in my /Library/Java/JavaVirtualMachines. In my case, 1.8.0.jdk
had to be replaced by jdk1.8.0_121.jdk
.
Upvotes: 4
Reputation: 111216
Install the Java 8 JDK not just the JRE. On macOS the JRE does not provide a complete Java installation.
The current (Java 8 update 121) location for the JDK download is here. You should end up with a jdk-8u121-macosx-x64.dmg
file to install. Once installed start the Terminal
app and make sure that java -version
works.
Upvotes: 2