ºìÁªLinuxÃÅ»§
Linux°ïÖú
µ±Ç°Î»ÖÃ: ºìÁªLinuxÃÅ»§ > SuSE

ΪSUSE´î½¨Java¿ª·¢»·¾³

·¢²¼Ê±¼ä:2007-12-13 10:10:32À´Ô´:ºìÁª×÷Õß:qdtantao
1.ÏÂÔØJDK¡£Õâ¸ö²»±Ø˵(ÎÒÏÂÔصÄÊÇ1.6.0_03)

2.¸Ä±ä°²×°ÎļþȨÏÞ¡£ÔÚÖÕ¶ËÖÐÓÃcdÃüÁî°Ñµ±Ç°Ä¿Â¼×ªÒƵ½jdk-6u3-linux-i586-rpm.binËùÔÚĿ¼£¬ÓÃls -lÃüÁî²é¿´ÎļþȨÏÞ£¬Èç¹ûÊÇ¿ÉÖ´ÐÐx£¨eXecute£©Ôò²»ÐèÒª¸ü¸Ä£¬·ñÔòÓÃÃüÁî chmod 755 jdk-6u3-linux-i586-rpm.bin£¬Ê¹×Ô½âѹ°üÎļþ¿ÉÖ´ÐÐ

3.°²×°¡£ÔÚÖÕ¶ËÊäÈë./jdk-6u3-linux-i586-rpm.bin,°´Ìáʾһ²½²½Ö´Ðм´¿É¡£

4.¸ü¸Ä»·¾³±äÁ¿¡£¸Õ²Å°²×°µÄ°æ±¾Ä¬ÈÏÔÚ/usr/java/jdk1.6.0_03£¬ÎÒÃÇ°ÑËü¼Óµ½»·¾³±äÁ¿¡£ÓÃcdÃüÁîתÒƵ½etcĿ¼£¬ÊäÈëgedit profile,ÔÚprofileÔÚºóÈýÐÐ

#
# End of /etc/profile
#

ÉÏÃæÌí¼ÓÈçÏÂÎı¾£º
export JAVA_HOME=/usr/java/jdk1.6.0_03
export CLASSPATH=.:$JAVA_HOME/jre/lib:$JAVA_HOME/lib/tools.jar
export JRE_HOME=$JAVA_HOME/jre

5.ÖØÐÂÆô¶¯ÏµÍ³£¬ÔÚÖÕ¶ËÊäÈëjava -version,ÏÔʾÄÚÈÝ£º

java version "1.6.0_03"
Java(TM) SE Runtime Environment (build 1.6.0_03-b05)
Java HotSpot(TM) Client VM (build 1.6.0_03-b05, mixed mode, sharing)

˵Ã÷»·¾³±äÁ¿ÉèÖóɹ¦¡£
ÎÄÕÂÆÀÂÛ

¹²ÓÐ 0 ÌõÆÀÂÛ