How to install jFreeChart in JBuilder7?

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

How to install jFreeChart in JBuilder7?

Post by Leon » Sat Nov 09, 2002 5:17 pm

I want to use jFreeChart in Servlet and Applet in JBuilder7.But I can't download the install document.Who can tell me how to do this?Thanks a lot!

Gooseman

Re: How to install jFreeChart in JBuilder7?

Post by Gooseman » Mon Nov 11, 2002 2:16 am

This may not be the fastest way of getting it to work, but I find it works best:

Before you start, make sure you've got the jcommon.jar file and jfreechartx.xx.jar files out of the zip file.

jfreechartx.xx.jar is in the root zip file
jcommon.jar is in the zip file, under the "lib" dir

Also extract the entire "src" directory.

Place the two jars and the src in the same directory if you wish (hint - place this somewhere in your project or java development directory)

Open JBuilder 7

Menu:

Project> Project Properties

Click the "Required Libraries" Tab (Bottom set of tabs)

Click "Add"

Click "New"

Type "JCommon" (Or whatever you want to call it)

Repeat to add a new library called "JFreeChart"

Then go back to the "Required Libraries" Tab. Add the two libraries (they should be under "home")

Select JCommon

Go to "Edit"

In the "Class" tab, click "Add"

Navigate to where you have the jcommon.jar file located (hint- don't expand the jar tree)

Select the "Source" tab, click "Add"

Navigate to the "src" container directory that has the source and select that directory (when you do this, if you press F1 over a jfreechart method, you'll have jbuilder open the autodocs)

Repeat the same for the JFreeChart library in the "Class" tab (link it to the same source location as before).

Hope this helps.

Locked