Netbeans vs. AppletViewer: "NoClassDefFoundError"

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
coolhand
Posts: 1
Joined: Sun Mar 15, 2015 1:02 am
antibot: No, of course not.

Netbeans vs. AppletViewer: "NoClassDefFoundError"

Post by coolhand » Sun Mar 15, 2015 11:26 pm

Brand new to Java and JFreeChart here.

I am having some issues running code between Netbeans and the appletviewer in cmd. The code works fine in Netbeans but when I try to run it in the appletviewer I get the "NoClassDefFoundError". The classpaths in each seem to be correct; in fact, earlier versions worked in the appletviewer. Since the time it was working, the changes that I made involved moving the chart from the demo display (that terminated the program when closed) to a ChartPanel that was added to a JFrame. Now the applet won't initialize and the class def error is occurring. The init() portion remained unchanged. When I try to open the HTML file directly, I get this error: "java.lang.NoClassDefFoundError: org/jfree/data/category/CategoryDataset". Any ideas???

Locked