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 t开发者_JAVA百科ried using an open source library, so I don't have any prior experience to go on myself.
Thank you very much in advance.
I believe the classpath points to the jars, not the directory in which the jars live.
精彩评论