I'm working on OS X Mavericks 10.9.5. I already have installed a jdk 1.6 on my OSX. I'm trying to install java 1.8 jre for using the latest version of Eclipse. I simply went on the oracle website and got the dmg.
It installed OK, no errors.
Yet, the latest version of Eclipse keeps using the old one. Same story from terminal java -version
returned java version "1.6.0_65"
and which java
returned /usr/bin/java
that was a link to /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/java
so I removed the link and recreated one to /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/java
that appears to be java version "1.8.0_40"
.
At this point eclipse returns an 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.
which is not accuate at all, since a simple
grep JNI_CreateJavaVM /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/../lib/server/libjvm.dylib
returns
Binary file /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/lib/server/libjvm.dylib matches
I also tried to add that path to info.plist in the Eclipse.app directory, but nothing works at this point and I'm out of options...
Any suggestions?