编辑/etc/profile.d/java.sh
内容如下
#ln -sf /usr/share/fonts/zh_CN/TrueType /usr/java/jdk1.6/jre/lib/fonts/fallback
export JAVA_HOME=/usr/java/jdk1.6
export CLASSPATH=.:$JAVA_HOME/lib:$JAVA_HOME/jre/lib
export PATH=$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$PATH
export JAVA_FONTS=/usr/share/fonts/zh_CN/TrueType
再执行
ln -sf /usr/share/fonts/zh_CN/TrueType /usr/java/jdk1.6/jre/lib/fonts/fallback
cd /usr/java/jdk1.6/jre/lib/fonts/fallback
ttmkfdir > ./fonts.dir
阅读(1436) | 评论(0) | 转发(0) |