问题描述
我对亚马逊EC2和JasperReports的Web应用程序无法正常工作像我的Windows PC上......它出来与
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.
我装解放-字体
所建议的许多关于谷歌,然后我试图设置该选项为tomcat的:
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
我把它添加到JAVA_OPTS(如CATALINA_OPTS失踪)在ETC / tomcat6中/ tomcat6.conf,没有效果。你有什么线索,对吗?
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?
推荐答案
我就遇到了这个问题的Fedora在EC2上一次。在这种情况下,我们解决了它与百胜安装似曾相识*
。给一个尝试。
I ran into this problem with Fedora on EC2 once. In that case we solved it with yum install deja*
. Give that a try.
似乎默认DejaVu字体被引用的地方,所以上面是一个简单的解决方案。
It seems that the default DejaVu fonts were referenced somewhere, so the above was a simple solution.
这篇关于JasperReports的不会在Amazon EC2上的Linux AMI工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!