java.lang.NoClassDefFoundError: com/jrefinery/char

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Post Reply
Miguel Zabaraín

java.lang.NoClassDefFoundError: com/jrefinery/char

Post by Miguel Zabaraín » Thu Jul 27, 2000 9:22 pm

java.lang.NoClassDefFoundError: com/jrefinery/chart/DataSource

appears when I try to run my G2D Application ( class G2D).

Please help me to fix this problem, It's URGENT.........

Thanks in advance.

Here is the code:

import java.lang.Number;
import java.lang.Integer;
import javax.swing.JFrame;
import com.jrefinery.chart.JFreeChart;
import com.jrefinery.chart.JFreeChartPanel;
import com.jrefinery.chart.DataSource;
import com.jrefinery.chart.CategoryDataSource;
import com.jrefinery.chart.DefaultCategoryDataSource;

public class G2D {

public static void main(String args[]) {

Number[][] data = new Integer[][]{
{new Integer(12274123),new Integer(14234255),
new Integer(12274123),new Integer(15976234) },

{new Integer(25126782),new Integer(12212523),
new Integer(14785123),new Integer(13334123) },

{new Integer(12265123),new Integer(12274123),
new Integer(26874123),new Integer(11274123) }

CategoryDataSource myDataSource = new DefaultCategoryDataSource(data);

JFreeChart myChart = JFreeChart.createVerticalBarChart(myDataSource);

JFreeChartPanel myPanel = new JFreeChartPanel(myChart);

JFrame frame = new JFrame();




Miguel Zabaraín

RE: java.lang.NoClassDefFoundError: com/jrefinery/

Post by Miguel Zabaraín » Thu Jul 27, 2000 9:55 pm

Ok. I found the problem.....
Thanks anyway.

Toni Kivinen

RE: java.lang.NoClassDefFoundError: com/jrefinery/

Post by Toni Kivinen » Thu Oct 12, 2000 11:28 am

And what was the problem ??? Because i didn't find it .....

Post Reply