1.JDK安装
1.jdk下载地址
官方网站(oracle):
http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html
2.jdk卸载
找到路径:/Library/Java/JavaVirtualMachines,然后删除即可
2.homebrew安装
1.mac安装homebrew
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"