I have downloaded the latest version of JFreeChart (1.0.14) and want to start using it. I only have imported standard Java packages like java.io.*
before and never dealt with 3rd party libraries. What do I need to tell jGRASP so it knows about and can access the JFreeChart library? I have tried to import it like this import org.jfree.chart.ChartFactory;
but getting the following error java:1: package org.jfree.chart does not exist
.
Asked
Active
Viewed 8,190 times
3

James Montagne
- 77,516
- 14
- 110
- 130

razshan
- 1,128
- 12
- 41
- 59
-
1Did you add JFreeChart jar to the classpath (or buildpath of jGRASP)? – naresh Jan 27 '12 at 03:30
2 Answers
1
You have to add a library's jar file into both compile-time and run-time CLASSPATH. In jGRASP you can do it through "Settings > PATH/CLASSPATH > Workspace" dialog. See HOWTO, Control Panel and Settings for more details.

Eric Leschinski
- 146,994
- 96
- 417
- 335
-
Thanks - I added all the jar files in the JFreeChart folder. And now I don't get any errors. – razshan Jan 31 '12 at 17:05