Classpath Problem - Urgent

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
lotus
Posts: 2
Joined: Wed Nov 17, 2004 7:12 am

Classpath Problem - Urgent

Post by lotus » Wed Nov 17, 2004 7:21 am

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..??

gandhi
Posts: 11
Joined: Wed Nov 17, 2004 5:24 pm

Post by gandhi » Wed Nov 17, 2004 6:09 pm

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.

lotus
Posts: 2
Joined: Wed Nov 17, 2004 7:12 am

Post by lotus » Thu Nov 18, 2004 2:24 pm

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?

Locked