I have a web application on Amazon EC2 and JasperReports doesn’t work like on my Windows PC… it comes out with
java.lang.Error: Probable fatal error:No fonts found.
I installed liberation-fonts as suggested by many on google, then I’m trying to set up this option for tomcat:
-Djava.awt.headless=true
I added it to JAVA_OPTS (as CATALINA_OPTS was missing) in etc/tomcat6/tomcat6.conf, with no effect. Do you have any clues on this?
I ran into this problem with Fedora on EC2 once. In that case we solved it with
yum install deja*. Give that a try.It seems that the default DejaVu fonts were referenced somewhere, so the above was a simple solution.