while i copied above code in my system ,It showing an error at line JFreeChart chart = ChartFactory.createPieChart ("Pie Chart ", data, true, true, false); as the method createPieChart("String",pieDataSet,boolean,boolean,boolean) not applicable for arguments("String",pieDataSet,boolean,boolean,boolean). KIndly suggest,how to rectify it.