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

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/25914757/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-11 01:29:16  来源:igfitidea点击:

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

javaeclipsemacososx-yosemite-beta

提问by nicthu

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. 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.

当我尝试启动应用程序时遇到此错误消息。启动时不起作用,所以我下载了 JDK 1.8.0_40,仍然没有骰子。它正在寻找正确的位置,文件存在并且它使用正确的 java 版本。不确定是什么问题,任何帮助将不胜感激。

采纳答案by 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

从 Apple 下载适用于 OS X 2014-001 的最新版 Java。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.

今天早上我遇到了同样的错误,这是一个快速而简单的解决方法。

回答by BlueFuzzyThing

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 的插件版本。

回答by Stephen Henrie

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!!

我也遇到了这个问题,因为我安装了 64 位 JDK 1.7(标准 Oracle 版本 - 不是其他答案中指示的 Apple 版本)并且错误地下载了 32 位版本的 Eclipse。啊!!

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

我删除了 32 位版本并下载了 64 位版本的 Eclipse,现在一切正常。

回答by Lucas Santos de Oliveira

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

回答by lowitty

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.

当我尝试在 OSX Yosemite 上使用 AptanaStudio 3.1 时遇到了这个问题。我在谷歌上搜索了很多这个问题,发现 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). So you don't have to worry about there is any conflicts while installing two version of JDK.

为什么我回答这个问题只是为了指定可以将这个版本的 JDK(当我下载包时是 1.6.0_65 版,64 位)与 J2SE 1.8(由 Oracle 提供)一起安装。所以你不必担心安装两个版本的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.

我需要 JDK1.8 以获得最新版本的 Oracle 的 J2SE 的一些新特性。我同时需要 Aptana Studio。我很担心可能会有一些冲突。

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.
  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
  1. 下载并安装包:JavaForOSX
  2. 找到文件“AptanaStidio3.ini”,该文件默认位于这里的目录下: /Applications/Aptana Studio 3/AptanaStudio3.app/Contents/MacOS
  3. 添加“-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.

希望对遇到同样问题的小伙伴有所帮助。

回答by 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<

只需下载适用于 OSX 的最新 Java 即可。我点击并从上面的链接下载了文件 -> http://support.apple.com/kb/DL1572?viewlocale=en_US&locale=en_US<