I have downloaded the code for drawing a bar chart,
that has imported these packages
import org.jfree.chart.*;
import org.jfree.chart.plot.*;
import org.jfree.data.*;
import org.jfree.data.general.*;

on compiling on java 1.6 these packages are giving error.
What is the problem??

Add the jar containing the jfreechart library in you class path by using the "-cp <path to jar>" argument while compiling as well as running your Java program

Well, posting the error might help. We can't read your screen from here you know.

how can I get the jar containing the jfreechart library. I haven't ever worked on this.plz help me

From the link that stephen84s posted in your other thread - the one to JFreeChart. Did you download it or just some example code?