I'm having trouble displaying the report in a hoped-for application in a VPS . I added the font depending on the Maven project, as shown below:
As I try to generate the report comes an error:
1st error:
Could not initialize class sun.awt.X11FontManager
2nd error:
Could not initialize class net.sf.jasperreports.engine.util.JRStyledTextParser
3rd error:
java.lang.UnsatisfiedLinkError: /usr/java/jdk1.8.0_102/jre/lib/i386/libfontmanager.so: libgcc_s.so.1: can not open shared object file: No such file or directory
Running Internet search, to solve the problem I found options like: -Djava.awt.headless=true
to add font dejavu-fonts.
Anyone have any suggestions for help?