JFreeChart & (Jb5 + jdk1.4)

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

JFreeChart & (Jb5 + jdk1.4)

Post by widcater » Wed Oct 30, 2002 9:50 am

hi,
i am beginner of JFreeChart and jb.
i have loaded the two .jar files into jb5's running envionment and import a simple package of JFreeChart.
(
import com.jrefinery.chart.*;
import com.jrefinery.data.*;
)
when i compile this file ,jb print message:

"Frame1.java": Error #: 704 : cannot access directory com\jrefinery\chart at line 3, column 1
"Frame1.java": Error #: 704 : cannot access directory com\jrefinery\data at line 4, column 1

why?
thanks
widcater

Dave Gilbert

Re: JFreeChart & (Jb5 + jdk1.4)

Post by Dave Gilbert » Wed Oct 30, 2002 9:55 am

Load up your JBuilder project, select Project --> Project Properties from the menu. Click on the "Paths" tab, then the "Required Libraries" tab, and define libraries for JCommon and JFreeChart here. After that, your imports should work just fine.

Regards,

DG.

jess

Re: JFreeChart & (Jb5 + jdk1.4)

Post by jess » Wed Nov 13, 2002 10:08 pm

Hi,

just wonder if you made it works as I try before and didnt work. I also try to

import jfreechart.*;
// this is to import the jfreechart.jar file i inlcude in my project



and add the jfreechart.jar in the required libraries in Project Properties.

if your works can you kindly tell me the way to make it works thx

reji

Re: JFreeChart & (Jb5 + jdk1.4)

Post by reji » Thu Nov 14, 2002 1:24 am

Hi,

Its working fine for me as David says...

Tools --> Configure Libraries

Create New Library with name "ChartLibrary"

Add jfreechart.jar and jcommon.jar to ChartLibrary

Then open ur project --> Project Properties --> Required LIbraries --> add "ChartLibrary"

reji

Locked