Liunx上安装JDK ,Maven,Tomcat >> cd /etc/profile


JAVA_HOME=/usr/local/jdk1.6.0_14
PATH=$JAVA_HOME/bin:$PATH
CLASSPATH=.$JAVA_HOME/lib/dt.jar:JAVA_HOME/lib/tools.jar
export JAVA_HOME,PATH,CLASSPATH

M2_HOME=/usr/local/apache-maven-2.2.1
PATH=$M2_HOME/bin:$PATH

CATALINA_BASE=/usr/local/apache-tomcat-6.0.26
CATALINA_HOME=/usr/local/apache-tomcat-6.0.26
PATH=$CATALINA_HOME/bin:$PATH
export CATALINA_BASE,CATALINA_HOME,PATH

你可能感兴趣的:(java,apache,jdk,tomcat,maven)