简体   繁体   English

OSX Yosemite - JVM共享库不包含JNI_CreateJavaVM符号

[英]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. 下载了OS X Yosemite Beta 3,我正在尝试运行一些基于eclipse的IDE,即Titanium Studio和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. 没有在启动时工作,所以我下载了JDK 1.8.0_40,仍然没有骰子。 It's looking in the proper location, the file exists and it's using the correct java version. 它正在查找正确的位置,文件存在并且它使用正确的java版本。 Not sure what the issue is, any help would be appreciated. 不确定是什么问题,任何帮助将不胜感激。

Download the newest version of Java for OS X 2014-001 from Apple. 从Apple下载最新版本的OS for OS X 2014-001。 http://support.apple.com/kb/DL1572?viewlocale=en_US&locale=en_US 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. 当我尝试在OSX yosemite上吃AptanaStudio 3.1时,我遇到了这个问题。 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. 我对这个问题进行了很多讨论,发现JDK1.8(64位)版本不支持Aptana Studio(3.1),也许还没有在基于Eclipse的相同骨架的其他IDE上工作。

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. 我能解决的唯一解决方案是安装旧版本的JDK,我发现@ChancePance链接只为我工作。

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). 为什么我回答这个问题只是为了指定可以安装这个版本的JDK(版本1.6.0_65,我下载软件包时为64位)和J2SE 1.8(由Oracle提供)。 So you don't have to worry about there is any conflicts while installing two version of JDK. 因此,在安装两个版本的JDK时,您不必担心存在任何冲突。

I need the JDK1.8 for some of the new features of the latest version of Oracle's J2SE. 我需要JDK1.8来获得最新版本的Oracle J2SE的一些新功能。 And I need Aptana Studio at the same time. 我同时需要Aptana Studio。 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: 以下是我在OSX Yosemite上为解决AptanaStudio3.1问题所做的工作:

  1. Download and install the package: JavaForOSX . 下载并安装包: 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 找到文件“AptanaStidio3.ini”,该文件默认位于以下目录下: /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”参数以指定将用于午餐Aptana Studio的java。 -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. 显然Aptana Studio是32位,而我安装的java是64位。

I didn't want to revert to Java6 as the accepted answer suggested, so I solved it another way. 我不想回复Java6作为接受的答案,所以我用另一种方式解决了。

I downloaded a 64-bit version of Eclipse and installed the plugin version of Aptana Studio. 我下载了64位版本的Eclipse并安装了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. 我也遇到了这个问题,因为我安装了64位JDK 1.7(标准的Oracle版本 - 而不是其他答案中指出的Apple版本)并错误地下载了32位版本的Eclipse。 Doh!! 卫生署!

I removed the 32 bit version and downloaded the 64 bit version of Eclipse and everything works great now. 我删除了32位版本并下载了64位版本的Eclipse,现在一切正常。

Simply downloading the newest Java for OSX worked the charm. 只需下载最新的OS for OSX就可以了。 I clicked and downloaded the file from the link above -> http://support.apple.com/kb/DL1572?viewlocale=en_US&locale=en_US < 我点击并从上面的链接下载了该文件 - > http://support.apple.com/kb/DL1572?viewlocale=en_US&locale=en_US <

Open "/Applications/BonitaBPMCommunity-6.5.0/BonitaBPMCommunity.app/Contents/MacOS/BonitaBPMCommunity.ini" 打开“/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: 通过在终端中执行来获取系统上JRE / JDK的位置:

/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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM