Because LinuxJDK6 does not support Chinese characters, the solution is as follows: 1. the downloaded yaheistmlas. copy ttf to/usr/share/fonts/default/path 2. go to the JDK installation directory www.2cto.com # cd $ JAVA_HOME/jre/lib/fonts3. create the fallback folder and switch to another directory... because Linux JDK6 does not support Chinese characters, the solution is as follows:
1. copy the downloaded yaheistmlas. ttf to/usr/share/fonts/default/path.
2. go to the JDK installation directory www.2cto.com.
# Cd $ JAVA_HOME/jre/lib/fonts
3. create a fallback folder and switch to the folder.
# Mkdir fallback
# Cd fallback/
4. connect with ln
# Ln-s/usr/share/fonts/default/yaheiw.las. ttf
5. search all fonts for each specified directory and generate the fonts. dir file to find the corresponding font file.
# Mkfontdir
# Mkfontscale
In this way, the program that requires JRE to run will not contain Chinese garbled characters.
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