Could not initialize class net.sf.jasperreports.engine.util.JRStyledTextParser

前端 未结 19 2205
清酒与你
清酒与你 2020-12-10 01:32

I\'m trying to display my reports on the browser , but I keep getting this error:

\"enter

19条回答
  •  离开以前
    2020-12-10 01:51

    There are 2 steps to solve this problem.

    1. -Djaav.awt.headless=true in startup script or vm options

    2. Install the fonts

      yum install fontconfig

    Then you can verify

    rpm -qa | grep font
    fontpackages-filesystem-1.44-8.el7.noarch
    dejavu-fonts-common-2.33-6.el7.noarch
    fontconfig-2.13.0-4.3.el7.x86_64
    dejavu-sans-fonts-2.33-6.el7.noarch
    

    This is on CentOS 7. We had been using Google Noto fonts and thought that we do not need any font installation but was wrong.

提交回复
热议问题