Linux JDK 解决乱码问题,中文字体设置方法

cd /usr/lib/jvm/java-1.5.0-sun/jre/lib/fonts

sudo ln -s /usr/share/fonts/truetype/wqy/ fallback

应该就可以了,主要目录要没错。

如果还不行,再执行下面

sudo mkfontscale

sudo mkfontdir

About 王永杰

路漫漫其修远兮,吾将上下而求索
This entry was posted in linux应用, 技术为本. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>