Solve java Chinese problems in linux

Source: Internet
Author: User
Solution to java Chinese problems in linux-general Linux technology-Linux programming and kernel information. The following is a detailed description. Problem description: The Chinese characters of the Java application cannot be displayed, and the square is displayed.

Cause analysis: the Java application cannot find the font that can display Chinese characters.

Solution: first, ensure that JDK 1.5.0 _ 06 is installed in the system. If JRE 1.5.0 _ 06 is installed, uninstall JRE and then install JDK. Download firefly00001.3.0, decompress the package, and then drop the ttf file to the system font directory/usr/share/fonts, and run it again using fc-cache-f-v, let the system know the font. Finally, go to jre/lib/fonts in the JDK installation directory and run the following command.

Mkdir fallback
Cd fallback
Ln-s/usr/share/fonts/fireflymtr. ttf
Mkfontdir
Mkfontscale

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.