I'm new to JFreeCharts. I face a problem.
My set-up has jfreechart-0.9.20.jar and jcommon-0.9.5.jar files under a lib directory. I use ant to deploy my application.
But I get the following error while compling the source, which uses StandardXYItemRenderer and XYSeries.
package org.jfree.data.xy does not exist
package org.jfree.chart.renderer.xy does not exist
Do I have to include anything more in the class path..??
Classpath Problem - Urgent
I'm guessing, but it might help ...
Try using the latest release (jfreechart-0.9.21.jar / jcommon-0.9.6.jar).
It looks like you're using (new) code that expects certain classes to be found in org.jfree.data/renderer.xy instead of org.jfree.data/renderer where they have in fact been until including the 0.9.20 build.
If for some reason you need to use the 0.9.20 version, you have to remove the substring ".xy" from your imports / references.
Try using the latest release (jfreechart-0.9.21.jar / jcommon-0.9.6.jar).
It looks like you're using (new) code that expects certain classes to be found in org.jfree.data/renderer.xy instead of org.jfree.data/renderer where they have in fact been until including the 0.9.20 build.
If for some reason you need to use the 0.9.20 version, you have to remove the substring ".xy" from your imports / references.
Thanks. But I have one more problem. When I started using the jfree 0.9.21 (and ofcourse jcommon 0.9.6) I get the following exception in my jboss while trying to create the chart.
java.lang.NoSuchMethodError: org.jfree.chart.ChartFactory.createPieChart(Ljava/lang/String;Lorg/jf
ree/data/general/PieDataset;ZZZ)Lorg/jfree/chart/JFreeChart;
I don't understand the error, even.
Can any one help me again?
java.lang.NoSuchMethodError: org.jfree.chart.ChartFactory.createPieChart(Ljava/lang/String;Lorg/jf
ree/data/general/PieDataset;ZZZ)Lorg/jfree/chart/JFreeChart;
I don't understand the error, even.
Can any one help me again?