Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

OSX Yosemite - JVM Shared library does not contain the JNI_CreateJavaVM symbol

Downloaded OS X Yosemite Beta 3 and I'm trying to run some eclipse based IDE's, namely Titanium Studio and Aptana Studio.

Running into this error message when I try to start the apps. Didn't work on boot, so I downloaded JDK 1.8.0_40, still no dice. It's looking in the proper location, the file exists and it's using the correct java version. Not sure what the issue is, any help would be appreciated.

like image 961
nicthu Avatar asked Sep 18 '14 13:09

nicthu


3 Answers

Download the newest version of Java for OS X 2014-001 from Apple. http://support.apple.com/kb/DL1572?viewlocale=en_US&locale=en_US

I encountered the same error this morning and this was a quick and easy fix.

like image 193
ChancePance Avatar answered Nov 01 '22 20:11

ChancePance


I got this problem when I try to lunch AptanaStudio 3.1 on OSX yosemite. I google this problem for quite a lot and found that JDK1.8(64-bit) version just does not support the Aptana Studio(3.1), maybe also not working on some other IDE which based on the same skeleton of Eclipse.

The only solution I can came out is to install an older version of JDK, and I found that the link @ChancePance provide just worked for me.

Why I am answering this question is just to specify that it's OK to install this version of JDK(which is version 1.6.0_65, 64-bit when I download the package) alongside with the J2SE 1.8(provided by Oracle). So you don't have to worry about there is any conflicts while installing two version of JDK.

I need the JDK1.8 for some of the new features of the latest version of Oracle's J2SE. And I need Aptana Studio at the same time. I am quite worried about there might be some conflicts.

Below is what I have done on OSX Yosemite to solve the problem of AptanaStudio3.1:

  1. Download and install the package: JavaForOSX.
  2. Found the file "AptanaStidio3.ini", the file by default located under the the directory here: /Applications/Aptana Studio 3/AptanaStudio3.app/Contents/MacOS
  3. Add "-vm" argument to specify the java which will be used to lunch Aptana Studio. -vm /Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/java

Hope this will help you guys who got the same problem.

like image 13
lowitty Avatar answered Nov 01 '22 20:11

lowitty


I ran into this problem as well. Apparently Aptana Studio is 32-bit, while the java I have installed is 64-bit.

I didn't want to revert to Java6 as the accepted answer suggested, so I solved it another way.

I downloaded a 64-bit version of Eclipse and installed the plugin version of Aptana Studio.

like image 9
BlueFuzzyThing Avatar answered Nov 01 '22 21:11

BlueFuzzyThing