JfreeChart Error in Linux/Unix environment
Asked Answered
T

1

2

I am getting this error in the Linux environment while displaying 3D pie charts on the web browser. It works perfectly fine in the windows environment.

java.lang.NoClassDefFoundError:
Could not initialize class org.jfree.chart.JFreeChart
at org.jfree.chart.ChartFactory.createPieChart3D(ChartFactory.java:763)

I have set the system property System.setProperty("java.awt.headless", "true"); in my java code. On checking the property, it has been set to true successfully. But still i am getting the same error.

Tintometer answered 13/9, 2011 at 10:30 Comment(0)
R
2

I suspect your Linux server is running headless. See Using Headless Mode in the Java SE Platform, as well as this related forum thread.

Resonant answered 13/9, 2011 at 11:45 Comment(1)
See also createPieChart3D(), and check the servlet container's class path.Resonant

© 2022 - 2024 — McMap. All rights reserved.