mac java环境变量配置 maven配置

mac 环境变量配置


打开terminal
然后输入vi .bash_profile

JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.7.0_06.jdk/Contents/Home

CLASSPAHT=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
PATH=$JAVA_HOME/bin:$PATH:
export JAVA_HOME
export CLASSPATH
export PATH

#M2_HOME=/usr/local/maven2/maven-2.0.2
#PATH=$M2_HOME/bin:$PATH
#export M2_HOME
#export PATH

#M2_HOME=/usr/local/maven2/apache-maven-2.0.8
#PATH=$M2_HOME/bin:$PATH
#export M2_HOME
#export PATH
M3_HOME=/usr/local/maven3/apache-maven-3.0.5
PATH=$M3_HOME/bin:$PATH
export M3_HOME
export PATH
相关推荐
©️2020 CSDN 皮肤主题: 酷酷鲨 设计师:CSDN官方博客 返回首页