打包后在别的机器上汉字不能正确显示,在线等,处理完,马上结帖。  
   
我用Jbuilder  9  。编写完代码后打成Exe包后,在同事的机器上不能显示出汉字,同事的机器只上安装了j2sdk-1_4_0-win.exe。我的Jdk是安装J9自带的。如果不用汉字,比如弹出一个"aaaa",就正常,但是弹出对话框上的确定按扭还是2个小方块,急。

解决方案 »

  1.   

    把C:\Documents and Settings\Administrator\.primetimeX目录下的user_zh.properties删除,重新启动JBuilder就可以解决问题了。
      

  2.   

    Did you use ResourceBundle to implement i18n? If yes, make sure your resource files are in your classpath on the target machine. If everything is packaged into an exe file, make sure your resource files are packaged in and in the classpath.
      

  3.   

    下载最新版的JDK把jre/lib下的font.properties.zh盖掉JB9所用的JDK相同目录JB9/jdk1.4/jre/lib下的相同文件就行了。