- brew cask search java
- brew cask info java
- brew cask install java
查看是否安装成功
java -version
jdk安装路径
/Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home/jre
查看是否安装成功
java -version
jdk安装路径
/Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home/jre