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
JFreeChart can't work well in tomcat on Linux Server
-
- Posts: 4
- Joined: Wed Sep 14, 2016 4:31 am
- antibot: No, of course not.