fedora7下的环境配置

shiren1118 2007-12-09
fc7下的环境配置 export GROOVY_HOME=/usr/local/groovy-1.5.0 export JAVA_HOME=/usr/java/jdk export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar export PATH=$PATH:$JAVA_HOME/bin:$GROOVY_HOME/bin 但是有一点为什么我的java -version还是gij呢?


java version "1.5.0"
gij (GNU libgcj) version 4.1.2 20070502 (Red Hat 4.1.2-12)

Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
[root@localhost ~]#
agile_boy 2007-12-09
呵呵,你的path配错了
应该是
export PATH=$JAVA_HOME/bin:$GROOVY_HOME/bin:$PATH
shiren1118 2007-12-10
export GROOVY_HOME=/usr/local/groovy-1.5.0
export JAVA_HOME=/usr/java/jdk
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
export PATH=$PATH:$JAVA_HOME/bin:$GROOVY_HOME/bin
agile_boy 2007-12-10
你应该将$JAVA_HOME/bin放到$PATH前面,明白否?
shiren1118 2007-12-11
谢谢你阿,呵呵
Global site tag (gtag.js) - Google Analytics