怎么在linux上装mcsdk

怎么在linux上装mcsdk,第1张

怎么在linux上装mcsdk

已经将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


欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/yw/7124065.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2023-04-01
下一篇 2023-04-01

发表评论

登录后才能评论

评论列表(0条)

保存