linux 环境变量
先进入主文件
cd~
vi.bashrc
exportANT_HOME=/opt/apache-ant-1.8.4
exportECLIPSE_HOME=/opt/eclipse/
exportJBOSS_HOME=/usr/local/jboss-4.0.5.GA/
PATH=$PATH:/opt/apache-ant-1.8.4/bin:/opt/eclipse/
JAVA_HOME=/usr/jdk1.6.0_35/
exportJRE_HOME=/usr/jdk1.6.0_35/jre
exportCLASSPATH=$JAVA_HOME/lib:$JRE_HOME/lib:$CLASSPATH
exportPATH=$JAVA_HOME/bin:$JRE_HOME/bin:$ANT_HOME/bin:$JBOSS_HOME/bin:$PATH