PDA

View Full Version : Cannot get Demo to work



Anonymous
04-30-2002, 02:48 PM
Hi...

I am having problems just trying to run the demo.

I have done the following:
installed JFreeReports with jars files in the following windows dir:
C:\download\jfree\jfreereport-0.7.0\jars

set my env. to
variable- CLASSPATH
value- .;C:\download\jfree\jfreereport-0.7.0\jars

when i type java -version:
java version 1.4.0

and finally I goto to the following dir and type the command for running the demo in windows:
C:\download\jfree\jfreereport-0.7.0\jars

java -classpath .;jcommon-0.5.6.jar;jfreereport-0.7.0.jar;iText.jar;gnujaxp.jar com.jrefinery.chart.demo.JFreeReportDemo

I get the followin error:
Exception in thread "main" java.lang.NoClassDefFoundError: com/jrefinery/chart/demo/JFreeReportDemo

so what am i doing wrong?!

thanks!

Amit Das

Anonymous
04-30-2002, 07:02 PM
Ah, this is simple :)
The demo class to start is "com.jrefinery.report.demo.JFreeReportDemo" as this is JFreeReport and not JFreeChart.

Then the demo should work as expected.

Have more fun,
Taq