cant install Jfreechart demo

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

cant install Jfreechart demo

Post by Bonsang » Wed Dec 18, 2002 12:58 am

Hello:
Wanted to try and install your application but got the following DOS prompt:
Exception in main thread java.lang.NoClassDefFoundError: com/jrefinery/ui/about/AboutFrame
I went through the steps in your pdf...can you help me?
Bonsang

David Gilbert

Re: cant install Jfreechart demo

Post by David Gilbert » Wed Dec 18, 2002 9:43 am

Did you include jcommon-0.7.1.jar on the classpath?

Regards,

DG

Tim Nordloh

Re: cant install Jfreechart demo

Post by Tim Nordloh » Mon Jan 13, 2003 9:21 pm

I'm having the same issue, and almost the same error.

Exception in thread "main" java.lang.NoClassDefFoundError: com/jrefinery/ui/Drawable


I use the command;

java -classpath /export/home/tnordloh/jfreechart-0.9.4/lib/jcommon-0.7.1.jar:jfreechart-0.9.4.jar:jfreechart-0.9.4-demo.jar com.jrefinery.chart.demo.JFreeChartDemo

which I'm running while in the directory

/export/home/tnordloh/jfreechart-0.9.4


Any clue as to what I'm doing wrong?

Tim Nordloh

Re: cant install Jfreechart demo

Post by Tim Nordloh » Mon Jan 13, 2003 9:58 pm

I found the solution; I placed the jcommon jar file in Java's ext directory (where it belongs anyway) and the program began to work.

Evidently there was some portion of the -classpath that I'm not understanding.

Locked