In Linux, JRE does not display Chinese characters. Solution
Source: Internet
Author: User
In Linux, JRE does not display Chinese solutions-general Linux technology-Linux programming and kernel information. For details, refer to the following section. When JRE is installed in windows, Chinese characters are displayed without configuration, but not in linux. Many characters are often displayed as small squares. The following method can be used to solve this problem, so that the JRE in linux can display Chinese well.
First, assume that your JRE installation directory is $ JRE_DIR.
1. Install the simsun. ttf font (which can be copied from Windows XP)
Copy the simsun. ttf font to the $ JRE_DIR/lib/fonts directory.
2. Modify the font. dir File
Modify the $ JRE_DIR/lib/fonts/font. dir text file and Add 1 to the number in the first line. For example, change 130 to 131, and then add a line below:
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.