Hi,
I got the documentation for JFreeChart and trying to compile and run the First example. I can compile but I get the following error when running First:
NoClassDefFoundError: org/apache/log4j/Logger
I do have log4j-1.2.8.jar in my class path...
Please help
tohi
NoClassDefFoundError: org/apache/log4j/Logger
-
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
- Contact:
I think your classpath must be wrong...but post the full exception text and see if that gives any further clues.
David Gilbert
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program
NoClassDefFoundError: org/jfree/util/PublicCloneable
I put the jfreechart and jcommon jar files in my j2sdk/lib directory, and was able to compile and run a simple program that simply created a CategoryDataset object.
However, when I added the command to use ChartFactory to create a chart, I am now getting the error in the subject line.
Why would the runtime environment be able to see the jfreechart jar file but not the jcommon jar file?
However, when I added the command to use ChartFactory to create a chart, I am now getting the error in the subject line.
Why would the runtime environment be able to see the jfreechart jar file but not the jcommon jar file?
java.lang.NoClassDefFoundError: org/apache/log4j/Logger
If you look at the trace you will see
at org.jfree.chart.plot.PiePlot.<clinit>(PiePlot.java:309)
at org.jfree.chart.ChartFactory.createPieChart(ChartFactory.java:201)
and the line in PiePlot is:
static { }
Is this the error?
What should it be?
Does the jar file jfreechart-0.9.18.jar have to be rebuilt?
I just downloaded JFreeChart (May 28,2004)
Thanks,
Robert Shapiro
at org.jfree.chart.plot.PiePlot.<clinit>(PiePlot.java:309)
at org.jfree.chart.ChartFactory.createPieChart(ChartFactory.java:201)
and the line in PiePlot is:
static { }
Is this the error?
What should it be?
Does the jar file jfreechart-0.9.18.jar have to be rebuilt?
I just downloaded JFreeChart (May 28,2004)
Thanks,
Robert Shapiro