LinuxÒÁµéÔ°ÂÛ̳'s Archiver

owilliam ·¢±íÓÚ 2005-4-25 14:43

¡¾ÇóÖú¡¿ÈçºÎΪjavaÉèÖû·¾³±äÁ¿?

Îҵݲװ²½ÖèÈçÏÂ:
[root @local root]#rpm -ivh jre-1_5_0_02-linux-i586.rpm

Íê³Éºó,ÎÒÔÚ/root/.bashrcÖмÓÈëÁË:

JAVA_HOME = /usr/java/jre1.5.0_02
export    JAVA_HOME

PATH = $PATH:$JAVA_HOME/bin
export PATH

µ«ÔÚÖÕ¶Ë  ÎÞ·¨ÔËÐÐ java ÃüÁî (command not fount )

ÇëÄÄλ´ó¸çÖ¸µãÒ»¶þ
лл!!!!!!!

tag111 ·¢±íÓÚ 2005-6-18 17:43

ÊÔÊÔÔÚ/etc/profileϼÓÈë
JAVA_HOME = /usr/java/jre1.5.0_02
export JAVA_HOME

PATH = $PATH:$JAVA_HOME/bin
export PATH
È»ºóÖØÐÂÊÔÊÔ

sikonglinghe ·¢±íÓÚ 2005-7-5 07:52

you know , edit the file under root or home is only for specific user, not for global. I agree with upstair.
It is easy to moderate /etc/profile. I check latest article that if you edit /etc/profile.d/java.sh (if no, simply create it), it's easier to maintain. Just for this reason

ttblmtang123 ·¢±íÓÚ 2005-7-21 09:29

Äã¿ÉÒÔÉè
                 JAVA_HOME=/usr/java/jre1.5.0_02;
                exort $JAVA_HOME

ttblmtang123 ·¢±íÓÚ 2005-7-21 09:31

(½ÚÉÏÆª)
    È»ºó exort PATH=$JAVA_HOME/bin:$PATH
ÕâÑù¾Í»áÆðЧ.ÒªÒÔÊÔÒ»ÏÂ

Ò³: [1]

Powered by Discuz! Archiver 6.1.0  © 2001-2007 Comsenz Inc.