Mac OS X “to open Eclipse, you need a Java SE 6 runtime”问题解决
来源:互联网 发布:vb循环语句 编辑:程序博客网 时间:2024/05/16 00:43
在Mac OS X上,只安装了Java 7而没有安装Java 6时,打开Eclipse等依赖Java的软件,可能会遇到:
To open “Eclipse,” you need a Java SE 6 runtime. Would you like to install one now?
这样的错误提示,经过查找和实验,这里给两个解决方案吧。
1.修改Java安装目录的Info.plist文件:
如,我的系统上是修改:/Library/Java/JavaVirtualMachines/jdk1.7.0_45.jdk/Contents/Info.plist 文件,将这部分
1234
<key>JVMCapabilities</key> <array> <string>CommandLine</string> </array>
改为如下:(主要是添加了4行东东)
12345678
<key>JVMCapabilities</key> <array> <string>JNI</string> <string>BundledApp</string> <string>WebStart</string> <string>Applets</string> <string>CommandLine</string> </array>
修改后,重启系统,再打开Eclipse这样的软件就会正常启动了。
2. 按照提示那样,安装JDK 6吧:
到Apple的官方如下页面下载JDK安装:
http://support.apple.com/kb/DL1572?viewlocale=en_US
安装后,默认就有java 6了,启动Eclipse也不会出问题了。
参考资料:
http://stackoverflow.com/questions/19563766/eclipse-kepler-for-os-x-mavericks-request-java-se-6
http://www.macobserver.com/tmo/article/uninstall-or-disable-java-on-a-mac
- Mac OS X “to open Eclipse, you need a Java SE 6 runtime”问题解决
- Eclipse OS X Yosemite 提示– To open“Eclipse” you need to install the legacy Java SE 6 runtime的解决办法
- To open “Eclipse,” you need a Java SE 6 runtime. Would you like to install one now?
- update Yosemite ,prompt " * you need to install the legacy Java SE 6 Runtime"
- JVM装MAC时遇到的一个问题(Mac OS X is not supported with binary translation. To run Mac OS X you need a host )
- The 10 Things You Need to Know About Java SE 6 'Mustang'
- The 10 Things You Need to Know About Java SE 6 'Mustang'
- Mac OS打开idea时提示需要Java SE 6 runtime的解决办法
- Mac OS 您需要安装旧 Java SE 6 Runtime运行环境才能打开“XXX” 问题
- eclipse:java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) wit
- Mac下打开eclipse 始终提示 你需要安装Java SE 6 Runtime
- Everything You Need to Know about iOS and OS X Deprecated APIs
- Mac OS 您需要安装旧 Java SE 6 运行环境才能打开"Eclipse" 的问题
- Eclipse Kepler 在 OS X Mavericks 下启动时提示安装 Java SE 6的问题
- Error initializing Java Runtime Environment. You may need to reinstall Flash
- failed to sync branch You might need to open a shell and debug the state of this repo.
- failed to sync branch You might need to open a shell and debug the state of this repo.
- failed to sync branch You might need to open a shell and debug the state of this repo
- 《C++沉思录》-第六章-句柄:第一部分
- 屏幕开发-屏幕文本的翻译
- php中使用伪静态
- 问题之--过滤器
- 条款03:尽可能的使用const
- Mac OS X “to open Eclipse, you need a Java SE 6 runtime”问题解决
- Mac下编译Android源码(OSX10.9 Mavericks)
- 数据库中聚集索引和非聚集索引区别
- sd卡启动linux 以及烧写内核
- 中文乱码处理
- SVM笔记
- SQL 行轉列 與 列轉行
- Java_io体系之PipedWriter、PipedReader简介、走进源码及示例——14
- apapche 性能优化