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.