Hi. I loaded jfreechart and I made java recognize it. I tried some codes found on the website to get familiar with the jfreechart but I'm getting a NoSuchMethodError exception. Can anyone tell me why? Here's the code:

Java Code:
import java.util.*;
import java.awt.*;
 import org.jfree.chart.*;
 import org.jfree.chart.title.*;
 import org.jfree.data.general.DefaultPieDataset;
 import org.jfree.ui.*;
 import org.jfree.chart.plot.*;
 import org.jfree.util.*;
 
public class pie{
 public static void main(String arg[]){
   DefaultPieDataset pieDataset = new DefaultPieDataset();
   pieDataset.setValue("One", new Integer(10));
   pieDataset.setValue("Two", new Integer(20));
   pieDataset.setValue("Three", new Integer(30));
   pieDataset.setValue("Four", new Integer(10));
   pieDataset.setValue("Five", new Integer(20));
   pieDataset.setValue("Six", new Integer(10));
   JFreeChart chart = ChartFactory.createPieChart3D("3D Pie Chart", pieDataset, true,true,true);
   PiePlot3D p=(PiePlot3D)chart.getPlot();
   p.setForegroundAlpha(0.5f);
   ChartFrame frame1=new ChartFrame("3D Pie Chart",chart);
   frame1.setVisible(true);
   frame1.setSize(300,300);
    }
 }
And here's what I got:

Java Code:
Exception in thread "main" java.lang.NoSuchMethodError: org.jfree.ui.RectangleInsets.<init>(DDDD)V
    at org.jfree.chart.axis.Axis.<clinit>(Axis.java:146)
    at org.jfree.chart.StandardChartTheme.<init>(StandardChartTheme.java:227)
    at org.jfree.chart.ChartFactory.<clinit>(ChartFactory.java:229)
    at pie.main(pie.java:25)
It pointed at this line:
Java Code:
JFreeChart chart = ChartFactory.createPieChart3D("3D Pie Chart", pieDataset, true,true,true);