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

南楼画角 提交于 2019-11-28 07:11:10
ChancePance

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.

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.

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.

I was also experiencing this problem because I had a 64 bit JDK 1.7 installed (the standard Oracle version - not the Apple version indicated in the other answers) and had mistakenly downloaded a 32 bit version of Eclipse. Doh!!

I removed the 32 bit version and downloaded the 64 bit version of Eclipse and everything works great now.

Sam

Simply downloading the newest Java for OSX worked the charm. I clicked and downloaded the file from the link above -> http://support.apple.com/kb/DL1572?viewlocale=en_US&locale=en_US <

Lucas Santos de Oliveira

Open "/Applications/BonitaBPMCommunity-6.5.0/BonitaBPMCommunity.app/Contents/MacOS/BonitaBPMCommunity.ini"

Obtain the location of the JRE / JDK on your system by executing in a terminal:

/usr/libexec/java_home
Add 2 lines after adapting the ...jdk1.8.0... to your system as found out above

-vm
/Library/Java/JavaVirtualMachines/jdk1.8.0_31.jdk/Contents/Home/bin/java
in between the following lines:

-clearPersistedState
-vmargs
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!