日期:2014-05-20  浏览次数:20702 次

jdk无法在Linux下显示中文
我在Debian   3.1(sarge)下安装了jdk1.4.2
好像需要配置一下,如何配置?
测试程序如下

import   java.awt.*;
import   java.util.*;

class   t1
  {public   t1()
      {Frame   f=new   Frame( "test ");

        Locale   currentLocale;
        ResourceBundle   messages;
        currentLocale   =   new   Locale( "zh ", "CN ");

        messages   =   ResourceBundle.getBundle( "MessagesBundle ",currentLocale);


        Button   b=new   Button(messages.getString( "greetings "));
        f.add(b, "Center ");       f.pack();   f.setVisible(true);
      }
    public   static   void   main(String   args[])
      {new   t1();}
  }


------解决方案--------------------
不,是simsun.ttc。在C:\WINDOWS\Fonts目录下
------解决方案--------------------
放到 fonts/fallback 下面 不是直接扔到fonts下面