简体   繁体   中英

Installing Java for Eclipse on OSX

I've been trying to install Java, mainly for Eclipse, in the latest OSX (10.11) but it just wont work. I installed JRE 8 and 7 and when I launch Eclipse it says that the Java version isn't suitable for it (Says I have 1.6.0_65 ) and that I need version 1.7 or higher . Then I tried to install the JDK 7 and 8 . Both installers get stuck on

Verifying JDK 7/8 Update xx.pkg

and wont move on. I don't know what else to do. Can anyone help me?

Thank you, Vasco

I just had the same problem trying to open the JDK 8 Update 211.pkg . I uninstalled the Java JRE using the comand line instructions here . I then restarted my machine, and tried opening the JDK 8 Update 211.pkg again and it worked right away.

You can specify which JVM Eclipse should use via eclipse.ini . That might get you going using the Java 7 or 8 JRE's that you installed, but if you're going to use Eclipse for any Java-based development you'll really want the JDK instead. So you should pursue why the JDK installations are failing on your machine (probably another SO question).

您应该使用此链接到Apple,为您的Mac下载正确的Java: https : //support.apple.com/kb/DL1572?locale=zh_CN

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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