简体   繁体   中英

install jdk 6 or higher on a mac osx 10

If I run javac -version on my mac (osx 10.11.3), I get this output

javac 1.8.0_73

According to this android dev page, I need JDK 6 or higher. I downloaded jdk 7 and 8 from here and clicked on the dmg but I'm getting the same output javac 1.8.0_73 when running javac -version

Question: how can I install jdk 6 or higher on a mac?

Versions of the JDK have a naming convention of 1.x, 1.x.0_##, etc. The "x" is the product version number. This means that your return of "javac 1.8.0_73" means you already have JDK 8u73.

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