如何在OSX上使用Eclipse来使用Java 1.6? [英] How can I get Eclipse on OSX to use Java 1.6?

查看:149
本文介绍了如何在OSX上使用Eclipse来使用Java 1.6?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚在我的OSX上安装了Java 1.6,除了Eclipse拒绝启动之外,一切都很出色。它提供了一个巨大的提示,我无法复制/粘贴,但它显然表明它想要使用Java 1.5,并且找不到它。

I just installed Java 1.6 on my OSX and everything works brilliantly, except that Eclipse refuses to start. It puts up a huge prompt from which I can't copy/paste, but it's clearly stating that it wants to be using Java 1.5 and can't find it anymore.

我的配置文件中没有看到有关哪个版本的Java应该找的东西。有没有人处理这个?

I don't see anything in its configuration files about which version of Java it should be looking for. Has anyone dealt with this?

提前感谢

推荐答案

在/Applications/Eclipse/Eclipse.app上,右键单击并选择显示包内容
打开包含文本编辑器的内容/ Info.plist plist编辑器

on /Applications/Eclipse/Eclipse.app right click and choose "Show Package Contents" open Contents/Info.plist with a text editor NOT plist editor

添加
< string> -vm< / string>
< string> /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Commands/java< / string>

to

<key>Eclipse</key>
        <array>
<!-- add it here -->
</array>

保存并重新启动。

这篇关于如何在OSX上使用Eclipse来使用Java 1.6?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆