Java Chinese Support Installation Guide

Source: Internet
Author: User
Keywords Java text installation Guide installation
Tags default development directory download get guide install installation

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.