1
I’m having difficulty displaying the report in a hopedada application on a VPS. I added the font in the project dependency Maven, as shown below:
When I try to generate the report there is error:
first mistake:
Could not initialize class sun.awt.X11fontmanager
second mistake:
Could not initialize class net.sf.jasperreports.engine.util.Jrstyledtextparser
third mistake:
java.lang.Unsatisfiedlinkerror: /usr/java/jdk1.8.0_102/jre/lib/i386/libfontmanager.so: libgcc_s.so. 1: cannot open Shared Object file: No such file or directory
Running Internet search, for solving the problem I found options like: -Djava.awt.headless=true
to add font dejavu-fonts.
Does anyone have any suggestions to help?