Class Logger Dissapear

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

Class Logger Dissapear

Post by dvera » Thu May 13, 2004 10:43 pm

Hi everyone,

When I try to plot an Histogram or a 3d Pie Chart I get the following Exception:


Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/log4j/Logger at org.jfree.chart.plot.PiePlot.<clinit>(PiePlot.java:309)
at org.jfree.chart.ChartFactory.createPieChart3D(ChartFactory.java:287)
at Pie3DChart.crearGrafica(Pie3DChart.java:93)
at Pie3DChart.main(Pie3DChart.java:138)

I also tried to compile the source code but I get the following Exception:

JFreeChart.java:129: package org.apache.log4j does not exist
import org.apache.log4j.Logger;
^
JFreeChart.java:235: cannot resolve symbol
symbol : class Logger
location: class org.jfree.chart.JFreeChart
static Logger logger = Logger.getLogger(JFreeChart.class);
^
StandardLegend.java:187: cannot resolve symbol
symbol : class Logger
location: class org.jfree.chart.StandardLegend
static Logger logger = Logger.getLogger(StandardLegend.class);
^
JFreeChart.java:235: cannot resolve symbol
symbol : variable Logger
location: class org.jfree.chart.JFreeChart
static Logger logger = Logger.getLogger(JFreeChart.class);
^
StandardLegend.java:187: cannot resolve symbol
symbol : variable Logger
location: class org.jfree.chart.StandardLegend
static Logger logger = Logger.getLogger(StandardLegend.class);
^
The application I've Done, is running in Sun ONE Application Server instead of Apache. What are the Libraries Do I have to include in the Classpath

Thank you :D
[/i]

garv
Posts: 127
Joined: Wed Mar 31, 2004 3:44 pm
Location: Amsterdam, The Netherlands

Post by garv » Fri May 14, 2004 9:33 am

You need the log4j jar file. Its included in the JFreeChart distribution, and you can find it at http://logging.apache.org/log4j/docs/index.html.

dvera

Thank you

Post by dvera » Fri May 14, 2004 2:13 pm

Thank you,

Locked