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!!!
jcommon-1.0.3 + jfreechart-0.9.20
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
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