解决Java乱码

安装好sun的Java虚拟机后,打开Java程序老是中文乱码,网上搜了下,解决方法
如下:
进入虚拟机的安装目录,在我的机器上是/usr/lib/jvm/java-6-sun
将中文字体拷贝入./jre/lib/fonts/fallback下即可
如果没有这个目录,可以自己建一个

Advertisements
此条目发表在未分类分类目录。将固定链接加入收藏夹。

发表评论

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / 更改 )

Twitter picture

You are commenting using your Twitter account. Log Out / 更改 )

Facebook photo

You are commenting using your Facebook account. Log Out / 更改 )

Google+ photo

You are commenting using your Google+ account. Log Out / 更改 )

Connecting to %s