In need of help with setting up the open source library JFreeChart

Posted by ssbellows on Stack Overflow See other posts from Stack Overflow or by ssbellows
Published on 2010-03-24T14:10:14Z Indexed on 2010/03/24 14:13 UTC
Read the original article Hit count: 505

Filed under:
|
|
|
|

I am having trouble with setting up the open source library JFreeChart for creating charts using Java. This is the process I have followed so far in trying to set it up:

I downloaded the latest version from their download page http://sourceforge.net/projects/jfreechart/files/.

I then unpacked the jfreechart-1.0.13.zip in the directory C:\JFreeChart\jfreechart-1.0.13\ on my system drive.

In the unpacked directory there is a folder entitled "lib" which contains the packaged .jar files specified as necessary to use JFreeChart. I added the following directory to my classpath: C:\JFreeChart\jfreechart-1.0.13\lib\

I then created a simple program and added the line "import org.jfree.chart.*;" to see if it would compile with a package imported from JFreeChart. I navigated to the folder in which my sample program was contained and compiled with the following command: "javac -classpath C:\ Program.java"

I was given the following error: "package org.jfree.chart does not exist"

Could someone please give me some input as to what I have done incorrectly in this setup process? This is the first time I've tried using an open source library, so I don't have any prior experience to go on myself.

Thank you very much in advance.

© Stack Overflow or respective owner

Related posts about java

Related posts about open