createpie error . classpath.

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

createpie error . classpath.

Post by goutam » Mon Mar 03, 2003 6:01 pm

Hello !,
Seems to be a basic question but i cant understand why.

I did install jfreechart and had it up and running on windows. When i try doing the same on Linux, i get the annoying classpath errors.
I did include the jar files (jfreechart-0.9.6.jar and the lib directory jar files in the path as well. I did give all possible paths. Even exploded the jar files and included the specific path in there.
I still end up getting the classpath Error

java.lang.NoClassDefFoundError
at com.jrefinery.chart.ChartFactory.createPieChart(ChartFactory.java:162)
My quesiton is are there any known problems relating to 0.9.6 version of jfreechart running on Tomcat 4.1.12. Using JDK 1.4.1

Any help is appreciated.
thanks,
goutam

goutam

Re: createpie error . classpath.

Post by goutam » Mon Mar 03, 2003 6:03 pm

Oh.. It also compiles right and i can run the demo successfully.

- goutam

goutam

Re: createpie error . classpath.

Post by goutam » Mon Mar 03, 2003 7:04 pm

The error occurs only when i execute the url from the browser.
-thanks goutam

goutam

Re: createpie error . classpath.

Post by goutam » Mon Mar 03, 2003 7:37 pm

My class path is as follows if this helps.

.:/usr/software/j2sdk1.4.1/lib:/usr/software/jakarta-tomcat-4.1.12/common/lib:/usr/software/jakarta-tomcat-4.1.12/common/classes:/usr/software/jakarta-tomcat-4.
1.12/common/lib/servlet.jar:/usr/software/jakarta-tomcat-4.1.12/server/lib:/usr/software/jakarta-tomcat-4.1.12/common/lib/mail.jar:/home/tomcat/rtap_admin/WEB-I
NF/classes:/home/tomcat/WEB-INF/classes:/usr/software/jfreechart-0.9.6:/usr/software/jfreechart-0.9.6/lib/jcommon-0.7.2.jar:/usr/software/jfreechart-0.9.6/jfreechart-0.9.6.jar

Ivan bayorss

Re: createpie error . classpath.

Post by Ivan bayorss » Tue Mar 04, 2003 10:24 am

i m faceing the same problem. cewolf charts are rendering correctly in windows but when i coppied the whole folder in the linux the graph does not render, what is the reason. i have put all the libraries and classes in WEB-INF with dtd files and change the web.xml files accordingly. it displays an error as no class found. do i need to change the classpath or what plz guide me.

David Gilbert

Re: createpie error . classpath.

Post by David Gilbert » Tue Mar 04, 2003 10:32 am

I suspect this is the same problem as:

http://www.object-refinery.com/phorum-3 ... 739&t=7739

Regards,

Dave Gilbert

Locked