如何使用新安装的JDK 1.5.0_6?
ML2中的JRE是1.5.0_5的,我安装了一个JDK 1.5.0_6,然后安装了Tomcat,但是启动Tomcat的时候,发现用的是1.5.0_5的JRE,我想使用1.5.0_6的,请问如何设置?另外,我想把1.5.0_5的删除,就留一个JDK 1.5.0_6,请问如何做呢?我是菜鸟,还请多帮忙啊,谢谢! :oops: 直接安装,然后修改/etc/profile.d/java-profile.sh环境变量中的路径,复制/usr/java/jre1.5.0_05/lib/fontconfig.properties到新的JRE目录/usr/java/jre1.5.0_06/lib目录中替代原文件。 把06改称05? 谢谢Haulm,现在顺带连中文字体的问题都解决啦, :-D 晕!刚装好JDK1.5.0_06,把jre1.5.0_05全给删掉了,谁能给我传个自带05版fontconfig.properties文件,看你们说,好像这个文件能解决中文乱码问题的?
谁能发个给我,多谢了!
QQ476012032 # @(#)linux.fontconfig.properties 1.2 03/10/28
#
# Copyright 2003 Sun Microsystems, Inc. All rights reserved.
#
# Version
version=1
# Component Font Mappings
serif.plain.latin-1=-misc-ar pl shanheisun uni-medium-r-normal--*-%d-*-*-c-*-iso10646-1
serif.bold.latin-1=-misc-ar pl shanheisun uni-medium-r-normal--*-%d-*-*-c-*-iso10646-1
serif.italic.latin-1=-misc-ar pl shanheisun uni-medium-r-normal--*-%d-*-*-c-*-iso10646-1
serif.bolditalic.latin-1=-misc-ar pl shanheisun uni-medium-r-normal--*-%d-*-*-c-*-iso10646-1
sansserif.plain.latin-1=-misc-ar pl shanheisun uni-medium-r-normal--*-%d-*-*-c-*-iso10646-1
sansserif.bold.latin-1=-misc-ar pl shanheisun uni-medium-r-normal--*-%d-*-*-c-*-iso10646-1
sansserif.italic.latin-1=-misc-ar pl shanheisun uni-medium-r-normal--*-%d-*-*-c-*-iso10646-1
sansserif.bolditalic.latin-1=-misc-ar pl shanheisun uni-medium-r-normal--*-%d-*-*-c-*-iso10646-1
monospaced.plain.latin-1=-misc-ar pl shanheisun uni-medium-r-normal--*-%d-*-*-c-*-iso10646-1
monospaced.bold.latin-1=-misc-ar pl shanheisun uni-medium-r-normal--*-%d-*-*-c-*-iso10646-1
monospaced.italic.latin-1=-misc-ar pl shanheisun uni-medium-r-normal--*-%d-*-*-c-*-iso10646-1
monospaced.bolditalic.latin-1=-misc-ar pl shanheisun uni-medium-r-normal--*-%d-*-*-c-*-iso10646-1
dialog.plain.latin-1=-misc-ar pl shanheisun uni-medium-r-normal--*-%d-*-*-c-*-iso10646-1
dialog.bold.latin-1=-misc-ar pl shanheisun uni-medium-r-normal--*-%d-*-*-c-*-iso10646-1
dialog.italic.latin-1=-misc-ar pl shanheisun uni-medium-r-normal--*-%d-*-*-c-*-iso10646-1
dialog.bolditalic.latin-1=-misc-ar pl shanheisun uni-medium-r-normal--*-%d-*-*-c-*-iso10646-1
dialoginput.plain.latin-1=-misc-ar pl shanheisun uni-medium-r-normal--*-%d-*-*-c-*-iso10646-1
dialoginput.bold.latin-1=-misc-ar pl shanheisun uni-medium-r-normal--*-%d-*-*-c-*-iso10646-1
dialoginput.italic.latin-1=-misc-ar pl shanheisun uni-medium-r-normal--*-%d-*-*-c-*-iso10646-1
dialoginput.bolditalic.latin-1=-misc-ar pl shanheisun uni-medium-r-normal--*-%d-*-*-c-*-iso10646-1
# Search Sequences
sequence.allfonts=latin-1
sequence.allfonts.GB18030=latin-1,chinese-gb18030
# Exclusion Ranges
# the fallback sequence omits the following character subsets:
sequence.fallback=chinese-gb18030
# Font File Names
filename.-misc-ar_pl_shanheisun_uni-medium-r-normal--*-%d-*-*-c-*-iso10646-1=/usr/share/fonts/ttf/zh_CN/uming.ttf
# AWT X11 font paths
awtfontpath.latin-1=/usr/share/fonts
awtfontpath.chinese-gb18030=/usr/share/fonts 嗯,谢谢了 比较晚才看到 :-)
页:
[1]