Java has 2, one is Openjava, one is Oracle Java, the default system installed is Openjava, if you are just ordinary users, run Java program just, Openjava enough, if you are engaged in Java development, honest with Sun-java , don't get over your work.
Install Chinese fonts
In this article assume that you have installed the Ttf-wqy-zenhei font pack, if you have not installed, please download the Ttf-wqy-zenhei font pack, use the following command to install:
sudo apt install Ttf-wqy-zenhei
In fact, as long as there is a Chinese font can be, just to the corresponding font (specific instructions) in the change to the font you want, here for convenience or with Ttf-wqy-zenhei font.
Set Chinese fonts (there are two options)
Programme I
Enter the font directory in the J2SDK Library directory, a directory located in/USR/LIB/JVM may be java-6-sun for JAVA-6-OPENJDK, enter its subdirectory jre/lib/
Set up the Fonts folder, and then create a new fallback directory and a soft link ttf-Chinese TTF font
sudo mkdir fonts/fallback
sudo ln-s/USR/SHARE/FONTS/TRUETYPE/WQY/WQY-ZENHEI.TTC Fallback/wqy-zenhei.ttf
Programme II
Open/usr/lib/jvm/java-6-sun/jre/lib/fontconfig.properties or/usr/lib/jvm/java-6-with the editor you use
Openjdk/jre/lib/fontconfig.properties
Make changes to find
Filehttp://www.aliyun.com/zixun/aggregation/11696.html ">name.-arphic-ar_pl_shanheisun_uni-medium-r-normal--*-* -*-*-p-*-iso10646-1=/usr/share/fonts/truetype/arphic/uming.ttf
filename.-arphic-ar_pl_uming_uni-medium-r-normal--*-*-*-*-p-*-iso10646-1=/usr/share/fonts/truetype/arphic/ Uming.ttf
Change the Uming.ttf of the two sentences to UMING.TTC.
Test changes
/usr/lib/jvm/java-6-sun/bin/java-jar/usr/lib/jvm/java-6-sun/demo/jfc/filechooserdemo/filechooserdemo.jar
If you click Browse to see Chinese instead of box, then congratulations, you succeed!
Chinese font Blur
Upgrade to 10.04,java program Chinese font Blur
echo "Export _java_options= '-dawt.usesystemaafontsettings=on '" >> ~/.BASHRC