Java AWT interface garbled in SuseLinux System

Source: Internet
Author: User
Article Title: JAVAAWT interface garbled in SuseLinux system. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.

Install EOS5.3 under Suse10.1. The interface buttons are square characters and Chinese characters can be viewed on the terminal. I searched the internet for several days and finally figured out the reason.

EOS5.3 uses jdk1.4.2. In suse, there is no Chinese font required by jdk by default. Additional configuration is required. The modification method is as follows:

1. Use the su command to switch to the root user, and then use the cd command to switch to the jre In the jdk installation path. For example:

Cd/usr/java/j2sdk1.4.2 _ 01/

Cd jre/lib

2. Find the simsun font in windows and upload it to jre/lib/fonts. For example:

Copy C: \ WINDOWS \ Fonts \ SimSun & NSimSun (TrueType) (simsun. ttf), ftp to/usr/java/j2sdk1.4.2 _ 01/jre/lib/fonts

3. Back up font. properties under the jre/lib directory;

Mv font. properties font. properties. bak

4. Copy font. properties. zh_cn.Sun to font. properties.

Cp font. properties. zh_cn.Sun font. properties

5. vi font. properties, find the line "filename. xxx ="

Change the following path to the full path of the uploaded simsun. ttf, and then modify the appendedfontpath line to direct the path to the folder where simsun. ttf is located.

Restart Suse.

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.