Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to solve the problem of garbled code in Java AWT interface under Suse Linux system

2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

Editor to share with you how to solve the problem of garbled code in Java AWT interface under Suse Linux system. I hope you will get something after reading this article. Let's discuss it together.

EOS5.3 uses jdk1.4.2. There is no Chinese font required by default for jdk under Suse. 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 jre; under the jdk installation path for example:

Cd / usr/java/j2sdk1.4.2_01/ cd jre/lib

two。 Find the simsun font from windows and upload it to jre/lib/fonts; for example:

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

3. Back up the 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 "filename.xxx=" line.

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

Over, restart Suse.

After reading this article, I believe you have a certain understanding of "how to solve the problem of garbled Java AWT interface under Suse Linux". If you want to know more about it, you are welcome to follow the industry information channel. Thank you for your reading!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report