Odd 0.9.4 Error

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

Odd 0.9.4 Error

Post by Noel Rappin » Mon Dec 02, 2002 9:22 pm

I just moved from 0.9.3 to 0.9.4 (in a servlet environment, on Linux, using JDK 1.4). Suddenly all my charts throw NoClassDefFound errors, with the class that they are unable to find being JFreeChart.
(One of the offending lines of code is...
new JFreeChart(this.caption(), this.titleFont(), this.plot(data), false);

Swapping the 0.9.3 jar back into the class path "fixes" the problem -- but I can't imagine why this is happening -- it's not a headless problem, as the 0.9.3 jar works fine. JFreeChart sure seems like it's in the 0.9.4 jar, and the program _compiles_ against the jar, but can't find it at run time...

Any thoughs?

Thanks,

Noel Rappin

David Gilbert

Re: Odd 0.9.4 Error

Post by David Gilbert » Tue Dec 03, 2002 12:13 am

Make sure you have also upgraded to the jcommon-0.7.1.jar file, this is required for JFreeChart 0.9.4. If that is not the problem, could you post the full exception message?

Regards,

DG

Noel Rappin

Re: Odd 0.9.4 Error

Post by Noel Rappin » Thu Dec 05, 2002 3:03 pm

That does seem to have fixed it -- I didn't know that there was a JCommon 7.1 -- I don't think I saw it on the home page.

Thanks for the help,

Noel

Locked