歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
您现在的位置: Linux教程網 >> UnixLinux >  >> Linux綜合 >> Linux資訊 >> 更多Linux

linux下java解決方案

  我使用的是mandrake9.0所以就在這塊寫一些,其實對於Java的設置在哪個版本都差不多!   首先下載j2sdk1.4.1_01,放到你喜歡的目錄   我放在了/home/j2sdk1.4.1   我的profile中是   #java   JAVA_HOME=/home/j2sdk1.4.1   eXPort JAVA_HOME   CLASSPATH=.:$JAVA_HOME/lib:$JAVA_HOME/jre/lib   export CLASSPATH   PATH=$PATH:$JAVA_HOME/bin:$JAVA_HOME/jre/bin   export PATH   接著在你的用戶目錄下的.bashrc中加入   JAVA_HOME=/home/j2sdk1.4.1   export JAVA_HOME   PATH=$PATH:$JAVA_HOME/bin   export PATH   這樣就可以在終端執行java,javac命令了.但是你不這樣做,系統也是認得!     關於mozilla的設置   為了使mozilla具有java-vm環境.你可以在JAVA_HOME/jre/plugin/i386/ns610/ 下發現它的插件,然後把它鏈接到mozilla_home/plugins下!   命令:ln -s JAVA_HOME/jre/plugin/i386/ns610/libjavaplugin_oji.so mozilla_home/plugins   記住不要復制過去!   還有:ln -s JAVA_HOME/jre/plugin/i386/ns610/libjavaplugin_oji.so ~/.mozilla/plugins (沒有plugins目錄,就創建一個)   ln -s JAVA_HOME/jre/plugin/i386/ns610/libjavaplugin_oji.so ~/.netscape/plugins   ln -s JAVA_HOME/jre/plugin/i386/ns610/libjavaplugin_oji.so ~/.netscape6/plugins   這樣就差不多了!     過於java的中文環境   如果你試著使用配置好的mozilla進入yahoo 的娛樂游戲.你就會發現所有的applet 游戲.字體都是方塊!   設置的大體方法是:   1.應該按照 bbs中一些高手的mandrake美化環境的貼子,把windows的simsun 復制到一個目錄,並且一步一步的設置.   2.把simsun.ttf 復制到JAVA_HOME/jre/lib/fonts下,修改其中的fonts.dir,加入 simsun.ttf -misc-simsun-medium-r-normal-*-*-110-*-*-c-*-iso8859-1   simsun.ttf -misc-simsun-medium-r-normal--0-0-0-0-c-0-gb2312.1980-0   3.打開JAVA_HOME/jre/lib/font.properties.zh.Turbo   我的改動是這樣,動作比較大.   請看我的文件:   # @(#)font.properties.zh.Turbo.Linux 1.4 02/06/10   #   # Copyright 2002 Sun Microsystems, Inc. All rights reserved.   #     # Component Font Mappings   #   #serif.0=-b&h-lUCidabright-medium-r-normal--*-%d-*-*-p-*-iso8859-1   #serif.1=-tlc-song-medium-r-normal--*-%d-*-*-c-*-gbk-0   serif.0=-misc-simsun-medium-r-normal-*-*-110-*-*-c-*-iso8859-1   serif.1=-misc-simsun-medium-r-normal-*-*-110-*-*-c-*-gb2312.1980-0   serif.italic.0=-misc-simsun-medium-r-normal-*-*-110-*-*-c-*-iso8859-1   serif.italic.1=-misc-simsun-medium-r-normal-*-*-110-*-*-c-*-gb2312.1980-0     serif.bold.0=-misc-simsun-medium-r-normal-*-*-110-*-*-c-*-iso8859-1   serif.bold.1=-misc-simsun-medium-r-normal-*-*-110-*-*-c-*-gb2312.1980-0     serif.bolditalic.0=-misc-simsun-medium-r-normal-*-*-110-*-*-c-*-iso8859-1   serif.bolditalic.1=-misc-simsun-medium-r-normal-*-*-110-*-*-c-*-gb2312.1980-0     sansserif.0=-misc-simsun-medium-r-normal-*-*-110-*-*-c-*-iso8859-1   sansserif.1=-misc-simsun-medium-r-normal-*-*-110-*-*-c-*-gb2312.1980-0     sansserif.italic.0=-misc-simsun-medium-r-normal-*-*-110-*-*-c-*-iso8859-1   sansserif.italic.1=-misc-simsun-medium-r-normal-*-*-110-*-*-c-*-gb2312.1980-0     sansserif.bold.0=-misc-simsun-medium-r-normal-*-*-110-*-*-c-*-iso8859-1   sansserif.bold.1=-misc-simsun-medium-r-normal-*-*-110-*-*-c-*-gb2312.1980-0     sansserif.bolditalic.0=-misc-simsun-medium-r-normal-*-*-110-*-*-c-*-iso8859-1   sansserif.bolditalic.1=-misc-simsun-medium-r-normal-*-*-110-*-*-c-*-gb2312.1980-0     monospaced.0=-misc-simsun-medium-r-normal-*-*-110-*-*-c-*-iso8859-1   monospaced.1=-misc-simsun-medium-r-normal-*-*-110-*-*-c-*-gb2312.1980-0     monospaced.italic.0=-misc-simsun-medium-r-normal-*-*-110-*-*-c-*-iso8859-1   monospaced.italic.1=-misc-simsun-medium-r-normal-*-*-110-*-*-c-*-gb2312.1980-0     monospaced.bold.0=-misc-simsun-medium-r-normal-*-*-110-*-*-c-*-iso8859-1   monospaced.bold.1=-misc-simsun-medium-r-normal-*-*-110-*-*-c-*-gb2312.1980-0     monospaced.bolditalic.0=-misc-simsun-medium-r-normal-*-*-110-*-*-c-*-iso8859-1   monospaced.bolditalic.1=-misc-simsun-medium-r-normal-*-*-110-*-*-c-*-gb2312.1980-0     dialog.0=-misc-simsun-medium-r-normal-*-*-110-*-*-c-*-iso8859-1   dialog.1=-misc-simsun-medium-r-normal-*-*-110-*-*-c-*-gb2312.1980-0     dialog.italic.0=-misc-simsun-medium-r-normal-*-*-110-*-*-c-*-iso8859-1   dialog.italic.1=-misc-simsun-medium-r-normal-*-*-110-*-*-c-*-gb2312.1980-0     dialog.bold.0=-misc-simsun-medium-r-normal-*-*-110-*-*-c-*-iso8859-1   dialog.bold.1=-misc-simsun-medium-r-normal-*-*-110-*-*-c-*-gb2312.1980-0     dialog.bolditalic.0=-misc-simsun-medium-r-normal-*-*-110-*-*-c-*-iso8859-1   dialog.bolditalic.1=-misc-simsun-medium-r-normal-*-*-110-*-*-c-*-gb2312.1980-0     dialoginput.0=-misc-simsun-medium-r-normal-*-*-110-*-*-c-*-iso8859-1   dialoginput.1=-misc-simsun-medium-r-normal-*-*-110-*-*-c-*-gb2312.1980-0     dialoginput.italic.0=-misc-simsun-medium-r-normal-*-*-110-*-*-c-*-iso8859-1   dialoginput.italic.1=-misc-simsun-medium-r-normal-*-*-110-*-*-c-*-gb2312.1980-0     dialoginput.bold.0=-misc-simsun-medium-r-normal-*-*-110-*-*-c-*-iso8859-1   dialoginput.bold.1=-misc-simsun-medium-r-normal-*-*-110-*-*-c-*-gb2312.1980-0     dialoginput.bolditalic.0=-misc-simsun-medium-r-normal-*-*-110-*-*-c-*-iso8859-1   dialoginput.bolditalic.1=-misc-simsun-medium-r-normal-*-*-110-*-*-c-*-gb2312.1980-0     # Missing Glyph Character   #   default.char=274f     # Component Font Character Encodings   #   fontcharset.serif.0=sun.io.CharToByteISO8859_1   fontcharset.serif.1=sun.awt.motif.CharToByteX11GBK     fontcharset.sansserif.0=sun.io.CharToByteISO8859_1   fontcharset.sansserif.1=sun.awt.motif.CharToByteX11GBK     fontcharset.monospaced.0=sun.io.CharToByteISO8859_1   fontcharset.monospaced.1=sun.awt.motif.CharToByteX11GBK     fontcharset.dialog.0=sun.io.CharToByteISO8859_1   fontcharset.dialog.1=sun.awt.motif.CharToByteX11GBK     fontcharset.dialoginput.0=sun.io.CharToByteISO8859_1   fontcharset.dialoginput.1=sun.awt.motif.CharToByteX11GBK     # Exclusion Ranges   #     # XFontSet Information   #   fontset.serif.plain=\   -misc-simsun-medium-r-normal-*-*-110-*-*-c-*-iso8859-1,\   -misc-simsun-medium-r-normal-*-*-110-*-*-c-*-gb2312.1980-0     fontset.serif.italic=\   -misc-simsun-medium-r-normal-*-*-110-*-*-c-*-iso8859-1,\   -misc-simsun-medium-r-normal-*-*-110-*-*-c-*-gb2312.1980-0     fontset.serif.bold=\   -misc-simsun-medium-r-normal-*-*-110-*-*-c-*-iso8859-1,\   -misc-simsun-medium-r-normal-*-*-110-*-*-c-*-gb2312.1980-0     fontset.serif.bolditalic=\   -misc-simsun-medium-r-normal-*-*-110-*-*-c-*-iso8859-1,\   -misc-simsun-medium-r-normal-*-*-110-*-*-c-*-gb2312.1980-0     fontset.sansserif.plain=\   -misc-simsun-medium-r-normal-*-*-110-*-*-c-*-iso8859-1,\   -misc-simsun-medium-r-normal-*-*-110-*-*-c-*-gb2312.1980-0     fontset.sansserif.italic=\   -misc-simsun-medium-r-normal-*-*-110-*-*-c-*-iso8859-1,\   -misc-simsun-medium-r-normal-*-*-110-*-*-c-*-gb2312.1980-0     fontset.sansserif.bold=\   -misc-simsun-medium-r-normal-*-*-110-*-*-c-*-iso8859-1,\   -misc-simsun-medium-r-normal-*-*-110-*-*-c-*-gb2312.1980-0     fontset.sansserif.bolditalic=\   -misc-simsun-medium-r-normal-*-*-110-*-*-c-*-iso8859-1,\   -misc-simsun-medium-r-normal-*-*-110-*-*-c-*-gb2312.1980-0     fontset.monospaced.plain=\   -misc-simsun-medium-r-normal-*-*-110-*-*-c-*-iso8859-1,\   -misc-simsun-medium-r




Copyright © Linux教程網 All Rights Reserved