JFreeChart can't work well in tomcat on Linux Server

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Post Reply
bill_chuang
Posts: 4
Joined: Wed Sep 14, 2016 4:31 am
antibot: No, of course not.

JFreeChart can't work well in tomcat on Linux Server

Post by bill_chuang » Fri Sep 23, 2016 6:28 am

My web application is deployed to the linux server without display divice and run in the tomcat.
But it will be stuck when call ChartFactory.createLineChart() method, as a result, application can't run out.
But if I run it as a Java SE application using java command on the terminal, it works fine.

I found the solution that setting a system property called 'java.awt.headless' to true effective. I done it and application can be run regularly, however, the components in generated chart such as the font size are enlarged more than it generated in localhost.


So anybody know how to solve it?

Thanks very much

Post Reply