Beginners guide to installing?

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
Guest

Beginners guide to installing?

Post by Guest » Wed Apr 13, 2005 3:02 pm

Hi. Uh, i'm really new to both jfree, and installing packages in general. I use JCreator, and I usually don't have to define any classpaths. If I'm going to install the jfree graph package do I have to set any classpaths? Or is there a main file I can comple in my JCreator editor, so it sets the classpath automaticly? If not, how do I do this? I've tried to search in this forum to get any help, but you all seems so clever that you don't need to ask this type of question... :oops:

timw
Posts: 20
Joined: Fri Mar 18, 2005 12:36 pm
Location: London

Post by timw » Wed Apr 13, 2005 3:30 pm

I don't actually use JCreator but as an IDE i think you should be able to do something similar to this:

download the jfreechart zip file and extract that to a directory. That will give you the jar files you need.

In JCreator start a new project and then probably go to its properties and find where it mentions libraries. Then all you need to do is add the jar files and this will put them on your classpath for that JCreator project.

Hope that helps.

PS. you shouldn't need to compile the source if you aren't changing it.

Guest

Post by Guest » Wed Apr 13, 2005 4:14 pm

Hmmm. But to use the package, do I have to set any classpaths? If I place the jfreechart-1.0.0-pre2 folder in the same place I've placed the other packages I've downloaded, my program still doesn't find the package i want to use. Do I have to do anything else than extracting the zip file to use the package?

mhilpert
Posts: 497
Joined: Wed Apr 02, 2003 1:57 pm
Location: Germany

Post by mhilpert » Thu Apr 14, 2005 9:54 am

You need to learn the basics of how to compile a Java application and therefore how to add classes to your classpath:

http://java.sun.com/docs/books/tutorial ... index.html

You always have to add your classes to the classpath of your project. To use those classes in your application, you need to import them via the import statement. This is very basic Java stuff.
Java 11, JFreeChart 1.0.15, JFreeSVG 4.0

Guest

Post by Guest » Thu Apr 14, 2005 11:28 am

JCreator takes care of classpaths. i figured it out. thanks anyway

Locked