转载自: http://gotyou.iteye.com/blog/967101



近日在fedora13中安装了oracle和sql developer,在英文环境下启动sql developer正常,可是切换到中文环境下就显示乱码。google了一下,确定是因为JDK不支持中文的原因。结合网上的办法和自身情况,问题解决。

解决办法:

1,找到jdk的安装路径,在jdk安装路径下有个fonts目录,如我的jdk安装路径为

   /usr/java/jdk1.6.0_24/jre/lib/fonts

到fonts目录下新建文件夹fallback

   cd /usr/java/jdk1.6.0_24/jre/lib/fonts

   mkdir fallback

进入到fallback目录下,

   cd fallback

2,查询本地系统使用的中文字体

   #find / -name *.ttc

   /usr/share/fonts/wqy-zenhei/wqy-zenhei.ttc

3,#ln -s /usr/share/fonts/wqy-zenhei/wqy-zenhei.ttc zenhen.ttc

4,#mkfontdir

5,#mkfontscale

6,##sqldeveloper

Ok,重启sql developer就正常显示中文啦。

附个人操作:


[root@zy ~]# find / -name fonts

/home/oracle/app/oracle/product/11.2.0/dbhome_1/apex/p_w_picpaths/flashchart/swf/fonts

/home/oracle/app/oracle/product/11.2.0/dbhome_1/jdk/jre/lib/fonts

/home/oracle/app/oracle/product/11.2.0/dbhome_1/javavm/lib/fonts

/etc/fonts

/usr/lib/xulrunner-1.9.2/res/fonts

/usr/share/xine/libxine1/fonts

/usr/share/X11/fonts

/usr/share/fonts

/usr/share/libwmf/fonts

/usr/share/cups/fonts

/usr/share/mimelnk/fonts

/usr/java/jdk1.6.0_24/demo/jfc/Java2D/src/fonts

/usr/java/jdk1.6.0_24/demo/plugin/jfc/Java2D/src/fonts

/usr/java/jdk1.6.0_24/jre/lib/fonts


[root@zy ~]# cd /usr/java/jdk1.6.0_24/jre/lib/fonts
[root@zy fonts]#mkdir fallback
[root@zy fonts]#cd fallback

[root@zy fallback]# find / -name *.ttc

/usr/share/fonts/wqy-zenhei/wqy-zenhei.ttc

[root@zy fallback]# ln -s /usr/share/fonts/wqy-zenhei/wqy-zenhei.ttc zenhei.ttc

[root@zy fallback]# mkfontscale

[root@zy fallback]# mkfontdir

[root@zy fallback]# #sqldeveloper