How can i add jfree lib to netbeans !!

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
Engy
Posts: 4
Joined: Mon Apr 23, 2007 1:57 pm

How can i add jfree lib to netbeans !!

Post by Engy » Mon Apr 23, 2007 3:21 pm

hiii
plz i wanna ask how can i add jfree lib to netbeans to b able to use it
Thx in advance

TheBear
Posts: 21
Joined: Mon Feb 20, 2006 3:16 pm

Post by TheBear » Tue Apr 24, 2007 7:39 am

Hi Engy,
maybe you better ask this in a NetBeans-Forum?

Regards

Björn

jfreeuser2006
Posts: 59
Joined: Mon Nov 20, 2006 1:00 pm

Post by jfreeuser2006 » Tue Apr 24, 2007 10:14 am

Go to tools > library manager

Then click new library. Name your library JFreeChart. Add the necessary jar
files.

Engy
Posts: 4
Joined: Mon Apr 23, 2007 1:57 pm

Post by Engy » Wed Apr 25, 2007 8:04 pm

Ohh thanks sooo much u really helped i did it thx

Engy
Posts: 4
Joined: Mon Apr 23, 2007 1:57 pm

Post by Engy » Wed Apr 25, 2007 8:15 pm

But i noticed that lots examples import it

import org.jfree.chart.ChartPanel;

and netbeans IDE till error can not find the package , i renamed it jfree still the error as it's
can u help plz :):)
Thx

jfreeuser2006
Posts: 59
Joined: Mon Nov 20, 2006 1:00 pm

Post by jfreeuser2006 » Thu Apr 26, 2007 12:18 am

Go to tools > library manager

Open the JFreeChart Library

In the Classpath Tab these jar files should be present:

Drive:\JFREECHART_HOME\lib\jcommon.jar
Drive:\JFREECHART_HOME\lib\jfreechart.jar

JFREECHART_HOME ---> where your jfreechart installation is.

then click OK

jfreeuser2006
Posts: 59
Joined: Mon Nov 20, 2006 1:00 pm

Post by jfreeuser2006 » Thu Apr 26, 2007 12:30 am

To add the library to the project you are working on.

Right click your project then > Properties > Libraries > Choose the Library you want to add. In this case the JFreeChart Library. Then click ok.

Engy
Posts: 4
Joined: Mon Apr 23, 2007 1:57 pm

Post by Engy » Thu Apr 26, 2007 1:58 am

Oh really thx soooooooo much i discovered my fault i just added jfreechart jar file and i forgot to add jcommon one
really thx so much u really helped

Locked