Exception in thread "main" java.lang.NoClassDefFou

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

Exception in thread "main" java.lang.NoClassDefFou

Post by Moshea » Wed Jan 08, 2003 9:33 am

Hiya

I have successfully compiled my MosheaChart2.java, however, when trying to run it, it gives me the following error. From my point of view, the error means that it cannot find the MonthConstans.class and I really cannot find it in the jfreechart-0.9.4.jar file. Anyway, what actually have I missed ?

C:\JapRtnChart>java MosheaChart2
Exception in thread "main" java.lang.NoClassDefFoundError: com/jrefinery/date/MonthConstants
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:509)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:246)
at java.net.URLClassLoader.access$100(URLClassLoader.java:54)
at java.net.URLClassLoader$1.run(URLClassLoader.java:193)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:186)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:265)
at java.lang.ClassLoader.loadClass(ClassLoader.java:262)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:322)
at MosheaChart2.createChart(MosheaChart2.java:113)
at MosheaChart2.main(MosheaChart2.java:150)

Thanks guys !!!

Moshea

David Gilbert

Re: Exception in thread "main" java.lang.NoClassDe

Post by David Gilbert » Thu Jan 09, 2003 7:29 am

You'll find that class in the jcommon-0.7.1.jar file.

Regards,

Dave Gilbert

Locked