ºìÁªLinuxÃÅ»§
Linux°ïÖú

LinuxÏÂÔËÐÐJAVA³ÌÐò----JRE°²×°ºÍÅäÖÃ

·¢²¼Ê±¼ä:2006-04-02 01:41:48À´Ô´:ºìÁª×÷Õß:LinuxÅàѵ²¿³¤
JAVA³ÌÐòµÄÔËÐбØÐëÒª°²×°JAVA RUNTIME £¬Ò²¾ÍÊÇÔËÐÐËùÐèÒªµÄ»·¾³£»ÎÒÃÇ¿ÉÒÔͨ¹ý°²×°JRE »òÕßJDK Ëù»ñµÃ£»Èç¹ûÎÒÃÇÖ»ÊÇÓ¦Óò»ÊÇ¿ª·¢£¬Ö»ÏÂÔØJRE µÄ°ü¾Í×ã¹»£» JDK°üÀïÃæÒ²°üº¬JRE£»±¾ÎÄÒÔJREµÄ°²×°ÎªÀý£»JREÖл¹°üÀ¨ä¯ÀÀÆ÷ËùÐèÒªµÄJAVA²å¼þ£»

Ò»¡¢ÏÂÔØJRE£»

http://ftp.isu.edu.tw/

¸ù¾Ý×Ô¼ºµÄ»úÆ÷À´ÏÂÔضÔÓ¦µÄ°æ±¾£¬ÎҵĻúÆ÷ÊÇ 32λµÄX86»ú£¬ËùÒÔÖ»ÄÜÏÂÔØ linux32Ŀ¼ÖÐµÄ jre-1_5_0_04-linux-i586.bin£»Èç¹ûÄúÊÇX86-64λ»ú£¬¾ÍÏÂÔØÏà¶ÔµÄ£»

http://ftp.isu.edu.tw/pub/Sun/java/JRE-5.0_04/linux32/jre-1_5_0_04-linux-i586.bin

¶þ¡¢½âѹºÍÅäÖã»

1¡¢ÊÍ·ÅÈí¼þ°ü£»



[root@localhost sunjava]# ls
jre-1_5_0_04-linux-i586.bin
[root@localhost sunjava]# sh jre-1_5_0_04-linux-i586.bin
Do you agree to the above license terms? [yes or no] yes
[root@localhost sunjava]# ls
jre1.5.0_04 jre-1_5_0_04-linux-i586.bin

2¡¢ÅäÖÃJRE £»


1£©°Ñjre1.5.0_04 µÄĿ¼ÒƵ½ /usr/libĿ¼ÖÐ


[root@localhost sunjava]# mv jre1.5.0_04 /usr/lib/jre154

2£©ÅäÖû·¾³±äÁ¿£»


ÔÚµ±Ç°Óû§µÄ.bashrc ÖмÓÈëÈýÐУ¬ÄÚÈÝÈçÏ£º


JAVA_HOME=/usr/lib/jre154
JAVA_BIN=/usr/lib/jre154/bin
export JAVA_HOME JAVA_BIN

Äú¿ÉÒÔÓÃgedit »ò vi À´±à¼­.bashrc Îļþ£»


[root@localhost sunjava]# gedit ~/.bashrc
[root@localhost sunjava]# vi ~/.bashrc

3£©¼ÓÒ»¸ö×ÖÌåsimsun.ttf £»

ÔÚ/usr/lib/jre154/lib/fontsÖн¨Ò»¸öĿ¼ fallback £¬È»ºó¿½×ÖÌå simsun.ttf µ½Õâ¸öĿ¼£¬»òÕß°Ñsimsun.ttc ¸´ÖƳÉsimsun.ttfÒ²ÐУ¬È»ºó·Åµ½Õâ¸öĿ¼£»




[root@localhost ~]# mkdir /usr/lib/jre154/lib/fonts/fallback

4£©°²×°java plugins £»ÈÃä¯ÀÀÆ÷Ò²ÄÜÖ§³Öjava ³ÌÐò£»

±ÈÈçÎÒÓà firefox ä¯ÀÀÆ÷£¬ÔòΪlibjavaplugin_oji.so½¨Ò»¸öÁ´½Óµ½firefox Ïà¶ÔÓ¦µÄĿ¼ÖеÄplugins Ŀ¼ÖУ¬ÆäËüä¯ÀÀÆ÷ͬÀí£»

[root@localhost plugins]# cd /usr/lib/firefox-1.0.6/plugins/
[root@localhost plugins]# ln -s /usr/lib/jre154/plugin/i386/ns7/libjavaplugin_oji.so .

5£©JAVA¿ØÖÆ̨µÄµ÷Óã»

[beinan@localhost ~]# /usr/lib/jre154/bin/ControlPanel

²âÊÔµØÖ·£º http://www.icq.com/icq2go


ÎÄÕÂÆÀÂÛ