ireport when the operating system does not have a relevant "character set" processing methods, such as the English version of Windows, fonts there is no "Arial"

Source: Internet
Author: User

Run Times Error:

Net.sf.jasperreports.engine.util.JRFontNotFoundException:Font ' song body ' is not available to the JVM. See the Javadoc for more details.

Solution:

Under the Classpath directory in the project

1. Add the font set you want (for example: under Windows fonts to find your character set or download) SIMSUN.TTC (Arial) to classpath directory;

2. Add the configuration file Jasperreports.properties, and the content is "

Net.sf.jasperreports.awt.ignore.missing.font=true

", also placed in the Classpath directory;

PS: I just put in the Classpath directory, as far as I want to put in other places, did not try! Guess it's just a suggestion to put it in the default location.

ireport when the operating system does not have a relevant "character set" processing methods, such as the English version of Windows, fonts there is no "Arial"

Related Article

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.