Hi,
I'm having some problems running the demos and would be grateful for some advice, please.
(My environement is Win98, jdk1.3.1_01, using jcommon 0.5.6 and jfreechart 0.7.4)
I am a bit desperate because I need to get some applets up and running quickly for my client and I want to see the demos running first.
To run one of the demos in the source\com\jrefinery\chart\demo directory ... do I just need to compile the class with javac and then run it from the same directory? Will it use the classes in the JFreeChart and JCommon jar files or classes from the source\com\jrefinery\chart\demo directory? I've only managed to get one of the demo's running so far; I had a simple pie chart demo application running OK but I only achieved this by commenting out the 'package' statement. In others I keep getting a bizarre error which appears to point to a classpath problem, although I have tried different things in this regard and I have confirmed that the classpath (either command line invoked or environment variable) is working fine.
This is an example of the error output I get, on running with the 'java' tool:
*****************
C:\jav\jfreechart-0.7.4\source\com\jrefinery\chart\demo>java TestChart
java.lang.NoClassDefFoundError: TestChart (wrong name: com/jrefinery/chart/demo/TestChart)
*****************
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:486)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:248)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286)
at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
Exception in thread "main"
I'd be very grateful if you could give me an idea of what is going wrong. Many thanks
Marc
Demos: problem running ~
Re: Demos: problem running ~
Can you get the JFreeChartDemo class running as per the README file?
Compiling the source code is optional, the precompiled classes are included in the jar files. Except that I don't think the TestChart class was included in the jar file in 0.7.4, so you would need to compile that class to see it running. Try JFreeChartDemo first, it has all the chart types in one...
Regards,
DG.
Compiling the source code is optional, the precompiled classes are included in the jar files. Except that I don't think the TestChart class was included in the jar file in 0.7.4, so you would need to compile that class to see it running. Try JFreeChartDemo first, it has all the chart types in one...
Regards,
DG.