java.lang.NoClassDefFoundError: PieChartDemo1/class

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
mattismyname
Posts: 4
Joined: Sat Mar 25, 2006 5:39 am

java.lang.NoClassDefFoundError: PieChartDemo1/class

Post by mattismyname » Sun Apr 23, 2006 5:34 am

I'm trying to run one of the demos that comes along with jfree chart as follows:

> setenv CLASSPATH .:blah/jfreechart-1.0.1.jar:blah/jcommon-1.0.0.jar
> javac PieChartDemo1.java
> java PieChartDemo1.class
Exception in thread "main" java.lang.NoClassDefFoundError: PieChartDemo1/class
>

Not sure what I'm doing wrong. If it were a classpath error, wouldn't the javac fail? If anybody has some suggestions, I'd be very appreciative...

skunk
Posts: 1087
Joined: Thu Jun 02, 2005 10:14 pm
Location: Brisbane, Australia

Post by skunk » Sun Apr 23, 2006 2:29 pm

what happens if you type "java PieChartDemo1"?

Locked