[英]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! 谢谢!
Make sure you download both: 确保同时下载:
Java Development Kit (JDK) 8 - http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html Java开发工具包(JDK)8- http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
Java Runtime Environment (JRE) 8 - http://www.oracle.com/technetwork/java/javase/downloads/jre8-downloads-2133155.html Java Runtime Environment(JRE)8- http://www.oracle.com/technetwork/java/javase/downloads/jre8-downloads-2133155.html
link : https://docs.oracle.com/javase/8/docs/technotes/guides/install/install_overview.html and scroll down to mac install instructions for more help 链接: https : //docs.oracle.com/javase/8/docs/technotes/guides/install/install_overview.html并向下滚动至mac安装说明以获取更多帮助
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.