已经将J2DK装好,并且J2DK目录为/usr/java/j2sdk1.4.2_08,环境变量已经添加我添加的环境变量是这样的:
# /etc/profile
export JAVA_HOME=/usr/java/j2sdk1.4.2_08
export CLASSPATH=$CLASSPATH:$JAVA_HOME/lib:$JAVA_HOME/jre/lib
export PATH=$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$PATH:$HOMR/bin
# System wide environment and startup programs, for login setup
# Functions and aliases go in /etc/bashrc
pathmunge () {
if ! echo $PATH | /bin/egrep -q "(^|:)$1($|:)" then
if [ "$2" = "after" ] then
PATH=$PATH:$1
else
PATH=$1:$PATH
fi
fi
}
# Path manipulation
if [ `id -u` = 0 ]then
pathmunge /sbin
pathmunge /usr/sbin
pathmunge /usr/local/sbin
fi
"/etc/profile" 51L, 1006C
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)