how do you get rid of this error: NoClassDefFoundError

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

how do you get rid of this error: NoClassDefFoundError

Post by Simon » Sun Mar 24, 2002 2:35 am

the program compiles without any errors, i have establised my classpath as an environment variable (im running windows xp if this helps) and i have copies of the jar files scattered all over the place.

no matter what i do i always get this error. does anyone have any ideas on how to remove it?

any help will be greatly appreciated

thanks

Simon

David Gilbert

Re: how do you get rid of this error: NoClassDefFoundError

Post by David Gilbert » Sun Mar 24, 2002 7:48 pm

There must still be a problem with your classpath. I'd need to see the relevant part of the exception message to figure out what is missing.

I recommend using the -classpath option on the command line when you run your application...it's just easier to know what you are working with.

Regards,

DG.

Locked