Page 1 of 1

jcommon-1.0.3 + jfreechart-0.9.20

Posted: Sun Apr 23, 2006 5:30 pm
by fabiancho
I proved several examples and all have this error

Exception in thread "main" java.lang.NoClassDefFoundError: org/jfree/ui/Spacer
at org.jfree.chart.StandardLegend.<clinit>(StandardLegend.java:108)
at org.jfree.chart.Legend.createInstance(Legend.java:151)
at org.jfree.chart.JFreeChart.<init>(JFreeChart.java:319)
at org.jfree.chart.ChartFactory.createPieChart(ChartFactory.java:218)
at bd.First.main("myClass".java:20)

HELP ME!!!

Posted: Sun Apr 23, 2006 7:22 pm
by Taqua
Hi,

it is near to impossible to use a newer version of JCommon as a replacement for a pre-1.0.0 JCommon version. At that time, the API of JCommon was not frozen, so refactorings and other changes usually made the new library version incompatible with the older one.

Either upgrade your JFreeChart to 1.0.0 to use the new JCommon version or use the JCommon version that has been supplied with JFreeChart at that time.

Regards,
Thomas