Solve spark garbled characters in Linux

Source: Internet
Author: User

Solve spark garbled characters:
In Linux, the problem of garbled Chinese characters in the Java graphic interface is often caused by the absence of appropriate fonts in the appropriate JRE/fonts.

 

For example, spark will ~ /. Write the last line in install4j, indicating that the JRE used by Spark is its own JRE.
Jre_version/home/gaoyibo/work/jdk1.6.0 _ 05 1 6 0 05
Jre_version/usr 1 6 0 0
Jre_version/home/gaoyibo/comodo/openfire/spark/JRE 1 6 0 02

Solve the garbled problem:

1. Find the JRE path and create the fallback folder.
Code: CD/home/gaoyibo/comodo/openfire/spark/JRE/lib/Fonts
Sudo mkdir fallback
2. Go to the fallback folder and link the Chinese font (I chose wenquanyi zhenghei)
Code: CD fallback
Sudo ln-S/usr/share/fonts/TrueType/wqy/wqy-zenhei.ttc
Sudo mkfontdir
Sudo mkfontscale

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.