trouble in showing a jfreechart with appletviewer

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

trouble in showing a jfreechart with appletviewer

Post by Tina » Fri Sep 21, 2001 8:33 am

hello.

I have trouble in showing a jfreechart with appletviewer,any help from you is appreciative.

I try to show a Jfreechart with appletviewer.
first:I create a jfreechartpanel mypanel with jfreechart
second:in the init method,add this jfreechartpanel.

public void init(){
charttest charttest1=new charttest();
JFreeChartPanel mypanel=charttest1.mychartpanel();
add(mypanel);
}


but i got wrong message:
java.lang.NoClassDefFoundError: com/jrefinery/chart/DataSource
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Compiled Code)
at sun.applet.AppletPanel.createApplet(AppletPanel.java:532)
at sun.applet.AppletPanel.runLoader(AppletPanel.java:468)
at sun.applet.AppletPanel.run(Compiled Code)
at java.lang.Thread.run(Thread.java:479)

however,when i run the application,it's ok.and i am sure the class DateSource in the class package.

hope you can get me.

thank you in advance
Tina

Hien Phan

RE: trouble in showing a jfreechart with appletvie

Post by Hien Phan » Thu Oct 25, 2001 1:10 am

You need to make sure that the HTML page you are feeding to the appletviewer has the "archive" parameter set to point at the jfreechart.jar file.

Locked