Mac 环境变量

touch .bash_profile

 

 

export JAVA_HOME=/Library/Java/Home

export ANDROID_SDK_ROOT=/Applications/java/adt-bundle-mac-x86_64-20140321/sdk

export CATALINA_BASE=/Applications/java/apache-tomcat-8.0.5
export CATALINA_HOME=$CATALINA_BASE
export CATALINA_TMPDIR=$CATALINA_BASE/temp
export TOMCAT_HOME=$CATALINA_BASE

export M2_HOME=/Applications/java/apache-maven-3.2.1
export M2=$M2_HOME/bin
export MAVEN_OPTS="-Xms256m -Xmx512m"

export ANT_ROOT=/Applications/java/apache-ant-1.9.4

export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar:$TOMCAT_HOME/lib/servlet-api.jar:$CLASSPATH

export PATH=$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$ANDROID_SDK_ROOT/tools:$ANDROID_SDK_ROOT/platform-tools:$CATALINA_HOME/bin:$M2:$ANT_ROOT/bin:$PATH

posted @ 2014-05-13 02:10  bingoogolapple  阅读(252)  评论(0编辑  收藏  举报