daust / JasperReportsIntegration

JasperReportsIntegration provides an interface to use the JasperReports reporting engine in an Oracle database application, specifically with Oracle Application Express (Oracle APEX).
BSD 3-Clause "New" or "Revised" License
56 stars 25 forks source link

JRStyledTextParser with font Noto Sans CJK SC from Google #18

Closed midval closed 4 years ago

midval commented 5 years ago

Hi Dietmar,

We want generate reports with chinese signs. Therefore we are using Google font "Noto". When I create the report with JasperStudio 6.2 and have the font included in the build path as a jar file. Everything is fine and the font is also embedded into the PDF. When we then copy the jar file to the path /WEB-INF/lib where jasperreoprtsintegration is installed and start tomcat, we can not generate any pdf. It throws the following error: "java.lang.NoClassDefFoundError: Could not initialize class net.sf.jasperreports.engine.util.JRStyledTextParser". I tried different things I found on google, but nothing helps. May you know what I'm doing wrong? I'm wondering because when I run the report with JasperStudio everything is fine just with the JRI service it generates this error.

Font link: https://www.google.com/get/noto/help/cjk/ NotoSansCJKsc-[weight].otf and NotoSansMonoCJKsc-{Regular, Bold}.otf

Regards Lavdim

daust commented 4 years ago

Hi @midval,

did you install the fonts as described here: https://www.google.com/get/noto/help/install/ ?

The fonts need to be properly installed on the target application server machine, so that Java can access them.

Thanks ~Dietmar.

daust commented 4 years ago

I am closing this issue because the op didn't respond. If you still encounter this issue, please reopen the issue. Thanks.