在 mac os x 上出现 Eclipse JNI_CreateJavaVM 错误
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/14481709/
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
eclipse JNI_CreateJavaVM error at mac os x
提问by ysnky
i am using mac os x 10.8.2. i have installed java 1.7 and then take back since i can not send iphone applications via xcode. now java 1.6 is installed.
我使用的是 mac os x 10.8.2。我已经安装了 java 1.7,然后收回,因为我无法通过 xcode 发送 iphone 应用程序。现在安装了 java 1.6。
ysnky@ ~$ java -version java version "1.6.0_37" Java(TM) SE Runtime Environment (build 1.6.0_37-b06-434-11M3909) Java HotSpot(TM) 64-Bit Server VM (build 20.12-b01-434, mixed mode) ysnky@ ~$
ysnky@ ~$ java -version java version "1.6.0_37" Java(TM) SE Runtime Environment (build 1.6.0_37-b06-434-11M3909) Java HotSpot(TM) 64-Bit Server VM (build 20.12-b01-434 , 混合模式) ysnky@ ~$
but now i can not run eclipse. it does not open, it gives this alert and closed.
但现在我无法运行 eclipse。它没有打开,它发出此警报并关闭。
The JVM shared library "/System/Library/Frameworks/JavaVM.framework" does not contain the JNI_CreateJavaVM symbol.
JVM 共享库“/System/Library/Frameworks/JavaVM.framework”不包含 JNI_CreateJavaVM 符号。
i am really confused and can not find a solution. i just want to run eclipse, that is all :( thanks.
我真的很困惑,找不到解决方案。我只想运行 eclipse,仅此而已:(谢谢。
回答by amarjit singh
You can download and install from apple website.It works perfect for me
您可以从苹果网站下载并安装。它非常适合我
回答by lancha90
If you don't have the file /System/Library/Frameworks/JavaVM.framework/Versions/Current
execute the following command
如果您没有该文件,请/System/Library/Frameworks/JavaVM.framework/Versions/Current
执行以下命令
cd /System/Library/Frameworks/JavaVM.framework/Versions
sudo ln -s /System/Library/Frameworks/JavaVM.framework/Versions/A Current
cd /System/Library/Frameworks/JavaVM.framework/Versions
sudo ln -s /System/Library/Frameworks/JavaVM.framework/Versions/A Current
回答by Nayan Seth
Update your Mac. Apple has provided new Java update which fixes this issue.
更新您的 Mac。Apple 提供了新的 Java 更新来解决此问题。
回答by jsavin
I was able to solve this by first removing any previously installed versions of the Oracle Java jdk. Instructions are here:
我能够通过首先删除任何以前安装的 Oracle Java jdk 版本来解决这个问题。说明在这里:
http://docs.oracle.com/javase/7/docs/webnotes/install/mac/mac-jdk.html#uninstall
http://docs.oracle.com/javase/7/docs/webnotes/install/mac/mac-jdk.html#uninstall
Then installing Apple's official Java JDK. For some reason the Java download page on support.apple.comcame back blank for me, but via Google's cached copy of the page, I found the direct link to download, which is what finally fixed this issue for me:
然后安装苹果官方的Java JDK。出于某种原因,support.apple.com 上的Java 下载页面对我来说是空白的,但是通过谷歌的页面缓存副本,我找到了下载的直接链接,这最终为我解决了这个问题:
http://support.apple.com/downloads/DL1572/en_US/JavaForOSX2014-001.dmg
http://support.apple.com/downloads/DL1572/en_US/JavaForOSX2014-001.dmg
回答by user3283861
You can download and install from apple website.It works perfect for me on mac 10.9.5
您可以从苹果网站下载并安装。它在 mac 10.9.5 上非常适合我