简体   繁体   English

如何在Mac上更新Java版本,以便可以安装Eclipse?

[英]How can I update my Java version on my Mac so I can install Eclipse?

I'm trying to install eclipse on my Mac so I can work on a homework assignment for school. 我正在尝试在Mac上安装eclipse,以便可以进行学校的家庭作业。 It's a new laptop so I needed to reinstall java on it which I did. 这是一台新笔记本电脑,所以我需要在上面重新安装Java。 Oracle's website said it was going to be the latest version of Java. 甲骨文的网站表示它将成为Java的最新版本。 However when I try and install eclipse I'm getting an error saying: 但是,当我尝试安装eclipse时,出现错误消息:

"Version 1.6.0_65 of the JVM is not suitable for this product. Version 7.0 or higher is required." “ JVM的1.6.0_65版本不适用于此产品。需要7.0或更高版本。”

When I go into terminal and check the version sure enough I get 当我进入终端并检查版本时,我确信

$ java -version
java version "1.6.0_65"

When I go to the Java Control Panel to try and update it there it tells me that I'm up to date saying I have Java 8 Update 101 but I'm still unable to install eclipse. 当我去Java Control Panel尝试更新它时,它告诉我我是最新的,我有Java 8 Update 101但仍然无法安装eclipse。 I have no idea what is wrong and could use some help. 我不知道出什么问题了,可以寻求帮助。

Thanks! 谢谢!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM