标签:
1. 下载安装 jdk
2. 配置环境
2.1. cd到目录 etc/profile
2.2. 使文件可读:chmod 666 profile model
2.3. 添加环境变量,要切换到etc目录:vim profile
JAVA_HOME="/Library/Java/JavaVirtualMachines/jdk1.8.0_91.jdk/Contents/Home/" CLASS_PATH="$JAVA_HOME/lib" PATH=".;$PATH:$JAVA_HOME/bin"
标签:
原文地址:http://www.cnblogs.com/SimonGao/p/5435779.html