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
A discussion forum for JFreeChart (a 2D chart library for the Java platform).
1 post • Page 1 of 1