MAC-JDK7安装

去网址 http://www.oracle.com/technetwork/cn/java/javase/downloads/jdk7-downloads-1880260.html
找到对应版本,下载安装,安装完成后,打开终端 输入

java -version

输出

java version "1.8.0_40"
Java(TM) SE Runtime Environment (build 1.8.0_40-b27)
Java HotSpot(TM) 64-Bit Server VM (build 25.40-b25, mixed mode)

JDK 的只能装目录为 /Library/Java/JavaVirtualMachines
终端输入 直接打开,可以查看

open /Library/Java/JavaVirtualMachines

你可能感兴趣的:(MAC-JDK7安装)