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
trouble in showing a jfreechart with appletviewer
RE: trouble in showing a jfreechart with appletvie
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.