Mac配置jdk環(huán)境
JAVA dmg下載
http://www.oracle.com/technetwork/cn/java/javase/downloads/jdk8-downloads-2133151-zhs.html修改.bash_profile
cd ~
touch .bash_profile
vi .bash_profile輸入配置環(huán)境變量
export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_73.jdk/Contents/Home
export PATH=$JAVA_HOME/bin:$PATH
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar更新配置文件
source .bash_profile