centos 5.6 配置jdk环境变量

#.bashrc

#Userspecificaliasesandfunctions

aliasrm='rm-i'

aliascp='cp-i'

aliasmv='mv-i'

#Sourceglobaldefinitions

if[-f/etc/bashrc];then

./etc/bashrc

fi

exportJAVA_HOME=/usr/java/jdk1.6.0_27

exportJAVA_BIN=/usr/java/jdk1.6.0_27/bin

exportPATH=$JAVA_HOME/bin:$PATH

exportCLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar

相关推荐