sudo vim ~/.bashrc
JAVA_HOME=/home/java/jdk7 注意jdk的地址
PATH=$JAVA_HOME/bin:$PATH
CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
TOMCAT_HOME=/home/tomcat/tomcat7
sudo vim ~/.bashrc
JAVA_HOME=/home/java/jdk7 注意jdk的地址
PATH=$JAVA_HOME/bin:$PATH
CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
TOMCAT_HOME=/home/tomcat/tomcat7