The WEKA interface in fedora13 is converted into a small square in Chinese.

Source: Internet
Author: User

Tip: http://wanjiwz.blog.163.com/blog/static/2293491200911190199640/

 

 

When running the WEKA program, I found that all the text on the interface was displayed as small blocks. I searched the internet for the following solutions. I copied a Chinese font file to the JRE/lib/fonts/fallback directory, if there is no fallback directory, create one manually. My computer's JRE is under/usr/lib/JVM/java-1.6.0-openjdk-1.6.0.0/, but there is no fonts directory under/usr/lib/JVM/java-1.6.0-openjdk-1.6.0.0/JRE/lib, after searching for the Internet for half a day, I did not see a similar problem. Later I found that the solution was so simple:
# Cd/usr/lib/JVM/java-1.6.0-openjdk-1.6.0.0/JRE/lib
# Mkdir Fonts
# Cd Fonts
# Mkdir fallback
# Cd fallback
# Cp... (here I copied stsong. TTF and sursong. TTF under C:/Windows/fonts in Windows)
# Mkfontdir
# Mkfontscale
Run Java-jar WEKA. jar in the WEKA directory. The Chinese font is displayed normally.

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.