Help!how to install JFreechart on the eclipse environment

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
Kevin.Cee
Posts: 1
Joined: Wed Mar 28, 2007 12:18 pm

Help!how to install JFreechart on the eclipse environment

Post by Kevin.Cee » Wed Mar 28, 2007 12:25 pm

I want to use the eclipse to generate some charts by using the JFreechart
but I don't know how to install the subassembly
please tell me how to???

mentalsandcastles
Posts: 13
Joined: Fri Feb 09, 2007 12:39 am
Location: California, USA

Post by mentalsandcastles » Wed Mar 28, 2007 9:27 pm

1. place jfreechart jars somewhere on your hard drive (i placed mine in C:\Eclipse\ext_libraries)

2. Open Eclipse.

3. Start a new Java project like you normally would.

4. In the Package Explorer, right click your project and then click "Properties"

5. In the window that comes up, click the "Libraries" tab

6. Click "Add External JARs..."

7. Navigate to the folder you created, and highlight jcommon-1.0.x.jar (which ever version you have).

8. Click "Open"; this will add that jar to the list of external libraries.

9. Repeat 6-8 for jfreechart-1.0.x.jar and jfreechart-1.0.x-experimental.jar (if you want to use the experimental features)

10. You should now have access to the vast array of types, methods, objects, etc. that JFreeCharts provides; you'll of course, need to add "import org.jfree.chart.CLASS_YOU_WANT" to use them, but you should be able to copy and paste various samples available on the Net directly into Eclipse with little modification.
Have you hugged your computer geek today?

scar
Posts: 8
Joined: Wed Mar 21, 2007 12:43 pm
Location: Netherlands

Post by scar » Thu Mar 29, 2007 6:58 am

mentalsandcastles wrote:1. place jfreechart jars somewhere on your hard drive (i placed mine in C:\Eclipse\ext_libraries)

2. Open Eclipse.

. . .

9. Repeat 6-8 for jfreechart-1.0.x.jar and jfreechart-1.0.x-experimental.jar (if you want to use the experimental features)
The above steps are basic steps to eclipse.

In step 9 you might add the jfreechart-swt jar if you want to use it in a true eclipse app.


-scar

Locked