I’m looking at various Mac options for JavaScript / Node.js IDEs, and decided to try out the Eclipse-based Aptana Studio 3 (now part of Appcelerator). But I ran into a problem when trying to run it—I kept getting an error saying:
The JVM shared library “/Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk” does not contain the JNI_CreateJavaVM symbol
After much searching and reading of Stack Overflow posts, I decided after reading this, to completely uninstall the jdk and browser plugin from my machine, and start fresh with a clean install of Java for Yosemite.
Now I don’t know if it’s just me, but oddly the page on the Apple Support site that comes back blank. (I’ll assume there’s no conspiracy for the moment, and that this is just a bug.)
So I plugged the URL to the page into Google and loaded up the cached version. There I found the direct download link to the installer here: http://support.apple.com/downloads/DL1572/en_US/JavaForOSX2014-001.dmg
After running that installer, Aptana Studio (and also Eclipse) now launch just fine. Phew.
I’m posting this here to help others who are running into the JNI_CreateJavaVM error, and so I can find it again the next time I need to set up a new machine with Eclipse or Aptana.
ps. See also comment thread on Facebook.
Thanks for posting…helped me quickly fix yet another thing broken by upgrade to Yosemite.
Sure thing. Glad to be helpful! 🙂
Thanks for this, I put of the yosemite upgrade until I finished a major project, thankfully I did as aptana stopped working promptly!!
J
Sure thing. Glad it helped you.
You saved the day.. literally! Thank you so much for your help.
awesome 🙂
thx a lot for the tip solved my problem
I know you posted this about 6 months ago, but I just wanted to stop by and tell you your post is still helping people 6 months later. Thanks!
You’re welcome—glad to hear it. 🙂
Jake… good post and I’m glad it helped some people. However, even though Apple still offers the version of Java from their web site at the link you provided above, its Java version 6.x which is rather old. The most recent version is Java 8.x. I don’t know about you, but I’m a little leery about installing really old software, especially Java, even if it does come from Apple. Just some food for thought, you know what I’m sayin’?
Will Aptana Studio work with Java 8? (I’m a Java-noob, and I am on the Apple update train, but it Aptana didn’t work “out of the box” for me at the time I wrote this post.)
The patch you have mentioned will install jdk 6 on the mac but i didn’t want jdk 6 as i need to work on JDK 8
I have no clue what’s needed to get this working with JDK 8. Back in November of 2011, I wanted to use Aptana to do remote JavaScript / Node.js debugging, and since I’m not doing Java development, the version of the JDK wasn’t important to me. If you get it working, someone will no doubt find it useful. Cheers!