Eclipse OS X Yosemite 提示– To open“Eclipse” you need to install the legacy Java SE 6 runtime的解决办法
来源:互联网 发布:android 离线数据缓存 编辑:程序博客网 时间:2024/06/05 07:01
最近我将笔记本更换成了Macbook Pro,它默认自带的系统是OS X Yosemite 10.10.1。安装了JDK 1.8之后,我的Android IDE(Eclipse and Android Studio)都可以正常运行,因此我能像通常一样去使用它们进行开发工作。但当我将OS X操作系统升级到Yosemite 10.10.3,我的Eclipse不能正常运行了,打开的时候会出现如下提示对话框:
To open “Eclipse” you need to install the legacy Java SE 6 runtime
如下图所示:
我点击了“More Info”这个按钮后,看到建议的解决办法是从Apple website下载安装Java SE 6 运行时环境,但是因为我这里的网络服务价格比较昂贵,我不想花费额外的流量来下载Java更新,于是我搜索了一下谷歌发现了其他的解决办法,这种解决办法非常简单,只需要改变一下Java library文件夹下的Info.plist文件就可以了。步骤如下:
- 查找到你的JDK文件夹下的Info.plist文件,我的是在这下面:
/Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/
- 用你喜欢的编辑器编辑Info.plist文件:
$vim /Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Info.plist
- 在Info.plist文件里找到以下内容:
<key>JVMCapabilities</key><array> <string>CommandLine</string></array>
- 用下面的内容将找到的内容替换:
<key>JVMCapabilities</key><array> <string>JNI</string> <string>BundledApp</string> <string>WebStart</string> <string>Applets</string> <string>CommandLine</string></array>
- 重启OS X系统使改变生效。
编译自:Eclipse Issue on Os X Yosemite – To open “Eclipse” you need to install the legacy Java SE 6 runtime
0 1
- Eclipse OS X Yosemite 提示– To open“Eclipse” you need to install the legacy Java SE 6 runtime的解决办法
- update Yosemite ,prompt " * you need to install the legacy Java SE 6 Runtime"
- Mac OS X “to open Eclipse, you need a Java SE 6 runtime”问题解决
- To open “Eclipse,” you need a Java SE 6 runtime. Would you like to install one now?
- Mac os 更新到Yosemite 10.10 打开eclipse时提示“您需要安装旧的java se 6 才能允许打开eclipse”
- The 10 Things You Need to Know About Java SE 6 'Mustang'
- The 10 Things You Need to Know About Java SE 6 'Mustang'
- Eclipse Kepler 在 OS X Mavericks 下启动时提示安装 Java SE 6的问题
- Mac OS打开idea时提示需要Java SE 6 runtime的解决办法
- PowerDesigner出现you need to install VBScript before you can run scripts的解决办法
- PowerDesigner出现you need to install VBScript before you can run scripts的解决办法
- 安装旧java se 6,os x yosemite phpstorm
- Android Studio vs. Eclipse: What You Need To Know
- eclipse:java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) wit
- You need to install the perl-doc package to use this program.
- eclipse 出现The preferences for the xdoclet runtime does not point to a valid installation.错误的解决办法
- eclipse 出现The preferences for the xdoclet runtime does not point to a valid installation.错误的解决办法
- how to fix the problem when you install matlab on *nix-- "libXp.so.6 : cannot open "
- 二分查找算法及其变种
- Python中用encoding声明的文件编码和文件的实际编码之间的关系
- ViewPager Adapter FragmentStatePagerAdapter FragmentPagerAdapter 使用详解
- 迭代器
- POJ 1177 Picture(线段树+扫描线)
- Eclipse OS X Yosemite 提示– To open“Eclipse” you need to install the legacy Java SE 6 runtime的解决办法
- pdo+mysql+php
- mybatis实战教程(mybatis in action),mybatis入门到精通
- saltstack相关的一些总结
- 把以下IP存入一个txt文件,编写程序把这些IP按数值大小,从小到达排序并打印出来。 61.54.231.245 61.54.231.9 61.54.231.246 61.54.231.48
- [Leetcode]Evaluate Reverse Polish Notation
- 【Matlab】小函数
- hdu 2108 Shape of HDU 计算几何(向量的叉积)
- ====在界面初始化之后就要弹出软键盘,与收起软键盘