Darth Blue Ray
Darth Blue Ray

Reputation: 9745

Problem implementing JFreeChart

DefaultPieDataset myColoredPieChart = new DefaultPieDataset();                
     myColoredPieChart.setValue("Java", 12.9);    
     .......
     org.jfree.chart.JFreeChart myColoredChart=ChartFactory.createPieChart("Programming - Colored Pie Chart Example",myColoredPieChart,true,true,false);    

I get a error "The type org.jfree.util.PublicCloneable cannot be resolved. It is indirectly referenced from required .class files"

Anyone a idea how to fix it?

Upvotes: 9

Views: 15124

Answers (1)

Ernest Friedman-Hill
Ernest Friedman-Hill

Reputation: 81724

JFreeChart is packaged as multiple jar files; you're probably not including all of them in your program. The one named jcommon-XXX.jar contains the class that's missing, so be sure to inclide that one in your program.

Upvotes: 19

Related Questions