Execution problem

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

Execution problem

Post by D.C. Prasad » Mon Feb 03, 2003 7:16 am

i loaded the class paths for the jar files (set classpath variable under control panel, win2k and also CLASSPATH in autoexec.bat). I can compile but get this message when trying to run the applet

java.lang.NoClassDefFoundError: Axis (wrong name: com/jrefinery/chart/Axis)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:509)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:1
3)
at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:148)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:114)
at java.lang.ClassLoader.loadClass(ClassLoader.java:262)
at sun.applet.AppletClassLoader.loadCode(AppletClassLoader.java:501)
at sun.applet.AppletPanel.createApplet(AppletPanel.java:548)
at sun.applet.AppletPanel.runLoader(AppletPanel.java:477)
at sun.applet.AppletPanel.run(AppletPanel.java:290)
at java.lang.Thread.run(Thread.java:536)


HELP! thanks...

Dinesh

David Gilbert

Re: Execution problem

Post by David Gilbert » Mon Feb 03, 2003 2:12 pm

You'll need to add the jfreechart-0.9.4.jar file is on your classpath, because it isn't there right now.

Regards,

Dave Gilbert

D.C. Prasad

Re: Execution problem

Post by D.C. Prasad » Mon Feb 03, 2003 6:35 pm

That's what I thought, the problem is I've tried setting the classpath several times. I'm running 2 copies of win2k adv server on 2 separate drives(i have multiple j2sdk development kits, could this be a problem?). I've tried setting the environment classpath variable as a user variable as well as an environment varable (not both at once). I've also put it into my autoexec.bat, the standard java jars are loading up fine by the way. do the jars have to be in a specefic file structure? or do they just need to be in the place the classpath variable defines it? I've been having this same problem trying to load other third party charting packages (Jsci and Oracle Chartbuilder 1.0). There must be something I'm not doing right, thanks for any suggestions!

Dinesh

ajayakumar

Re: Execution problem

Post by ajayakumar » Mon Feb 03, 2003 7:15 pm

I am also having the same problem.Its getting only in pie chart.I was able to run the category chart.

Locked