I've downloaded the JFreeChart library, and have set it up in my working directory. But I'm having problems compiling the source files so I can have classes to use.
I've set up my file directories as such:
myappldir/ has my own program files and classes
myappldir/com/jrefinery/ has the chart and util directories where the source files are located
I've tried using the command in the instructions for compiling the source from myappldir/:
javac -g:none -O -verbose com/jrefinery/chart/demo/JFreeChartDemo.java
but it gives me many errors of which the first few say that
package com.jrefinery.chart does not exist.
Can anybody help me with this?
Thanks,
Chad
setting JFreeChart, (recompiling source)
RE: setting JFreeChart, (recompiling source)
Hi Chad,
First, you don't have to compile the source - you can just use the precompiled classes in jfreechart.jar.
That said, it is a good idea to recompile the code yourself - that way you can be sure the classes you have match the source code (I'm pretty sure they do, but you shouldn't trust me!)
I can't see what the problem is with your javac command - it looks as though you have all the files in the right place...let me know if you discover the problem.
Regards,
DG.
First, you don't have to compile the source - you can just use the precompiled classes in jfreechart.jar.
That said, it is a good idea to recompile the code yourself - that way you can be sure the classes you have match the source code (I'm pretty sure they do, but you shouldn't trust me!)
I can't see what the problem is with your javac command - it looks as though you have all the files in the right place...let me know if you discover the problem.
Regards,
DG.