In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
In this issue, the editor will bring you about Suse Linux how to solve the AWT interface garbled. The article is rich in content and analyzes and narrates for you from a professional point of view. I hope you can get something after reading this article.
When we install Suse Linux, we will encounter problems of one kind or another, such as the problem of garbled code in the JAVA AWT interface under the Suse Linux system. When we install EOS5.3 under Suse Linux, the interface buttons are all squares, but it is good to view Chinese on the terminal. Let's talk about the solution to this problem.
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:WINDOWSFontsSimSun&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.
The above is the Suse Linux shared by the editor to solve the AWT interface garbled. If you happen to have similar doubts, you might as well refer to the above analysis to understand. If you want to know more about it, you are welcome to follow the industry information channel.
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.