Linux under Java window, display Chinese correctly

Source: Internet
Author: User
Tip1

1. Create a directory under java_home/jre/lib/fonts/fallback
2. It's easiest to get a Chinese font in fallback ln a little bit.
Like what:

Ln-s/usr/share/fonts/truetype/arphic/uming.ttf  $JAVA _home/jre/lib/fonts/fallback/
Tip2

Problem Description: The Chinese of Java application cannot be displayed, rendering square block.

Cause Analysis: Java applications cannot find fonts that are available for display in Chinese.

Solution: First, make sure that the JDK 1.5.0_06 is installed in the system, and if the JRE 1.5.0_06 is installed, remove the JRE and install the JDK. Then download Fireflysung 1.3.0, unzip the TTF file into the system font directory/usr/share/fonts, and then run with Fc-cache-f-V, let the system know this font. Finally, go to jre/lib/fonts in the JDK installation directory and use the following command to complete.

mkdir fallback CD fallback ln-s/usr/share/fonts/fireflysung.ttf mkfontdir Mkfontscale



blog:http://agapple.javaeye.com/Welcome to visit

Http://www.blogjava.net/agapple/archive/2008/10/31/237838.html

Linux under Java window, display Chinese correctly

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.