I get this message when attempting to run a jFreeChart application. Code:
package chapter04b;
import org.jfree.ChartFactory;
import org.jfree.ChartFrame;
import org.jfree.jFreeChart;
import org.jfree.data.general.DefaultPieDataset;
public class First3 {
/**
* @param args
*/
public static void main(String[] args) {
//create a dataset
DefaultPieDataset dataset = new DefaultPieDataset();
dataset.setValue(“Category 1”, 43.2);
dataset.setValue(“Category 2”, 27.9);
dataset.setValue(“Category 3”, 79.5);
// create a chart
JFreeChart chart = ChartFactory.createPieChart(
“Sample Pie Chart”,
dataset,
true, // legend?
true, // toottips?
false // URLs?
);
// create and display a frame
ChartFrame frame = new ChartFrame(“First”, chart);
frame.pack();
frame.setVisible(true);
}
}
What’s going on???
TIA