2.安装jre
下载地址: https://java.com/zh_CN/download/
软件包 jre-9.0.4_osx-x64_bin.dmg,直接双击加载安装即可.
安装路径: /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/
测试运行:
> /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/java -version
java version "9.0.4"
Java(TM) SE Runtime Environment (build 9.0.4+11)
Java HotSpot(TM) 64-Bit Server VM (build 9.0.4+11, mixed mode)
3.安装jdk
下载地址:同上。
软件包: jdk-9.0.4_osx-x64_bin.dmg,双击加载安装。
安装路径: /Library/Java/JavaVirtualMachines/jdk-9.0.4.jdk/Contents/Home/
测试运行:
java -version
java version "9.0.4"
Java(TM) SE Runtime Environment (build 9.0.4+11)
Java HotSpot(TM) 64-Bit Server VM (build 9.0.4+11, mixed mode)
原文地址:http://blog.51cto.com/12671652/2087114