Hi, I am getting the following errors after compilation of JFreeChartDemo i downloaded the 0.7.0 version.
Any input how to prevent these would be appreciated.
"JFreeChart.java": Error #: 704 : cannot access directory com\jrefinery\data at line 65, column 1
"JFreeChart.java": Error #: 300 : class DatasetChangeListener not found in class com.jrefinery.chart.JFreeChart at line 85, column 36
"AbstractTitle.java": Error #: 704 : cannot access directory com\jrefinery\ui at line 43, column 1
"Plot.java": Error #: 300 : method removeChangeListener(com.jrefinery.chart.Plot) not found in class com.jrefinery.chart.JFreeChart at line 320, column 19
"StandardLegend.java": Error #: 300 : class Dataset not found in class com.jrefinery.chart.StandardLegend at line 216, column 9
"StandardLegend.java": Error #: 300 : method getDataset() not found in class com.jrefinery.chart.JFreeChart at line 216, column 30
"StandardLegend.java": Error #: 300 : method getLegendItemCount() not found in class com.jrefinery.chart.JFreeChart at line 218, column 37
"StandardLegend.java": Error #: 300 : method getPlot() not found in class com.jrefinery.chart.JFreeChart at line 312, column 41
Thank you,
Navin Pathuru.
compilation errors.
RE: compilation errors.
Hi Navin,
You need to make sure you have jcommon-0.5.2.jar on your classpath. It is in the jars directory in the JFreeChart download. If you want the source code for JCommon (recommended) then you can download it separately from:
http://www.jrefinery.com/jcommon
I think there is still an issue recompiling the servlet demo. I'm checking this, and updating the documentation, and will hopefully have 0.7.1 ready for release soon.
Regards,
DG.
You need to make sure you have jcommon-0.5.2.jar on your classpath. It is in the jars directory in the JFreeChart download. If you want the source code for JCommon (recommended) then you can download it separately from:
http://www.jrefinery.com/jcommon
I think there is still an issue recompiling the servlet demo. I'm checking this, and updating the documentation, and will hopefully have 0.7.1 ready for release soon.
Regards,
DG.
RE: compilation errors.
I had the same problem, and your solution worked ok, David. Thanks. The only other thing was to compile the Servlet demo, you need to have the Java Servlets jar file added to your classpath as well. You can find this on java.sun.com or, optionally, you can just grab the one which is bundled with the Tomcat servlet engine (jakarta.apache.org/tomcat).
It wouldn't hurt to add servlets.jar to the jars directory in the distribution, however. Probably save a lot of confusion, and the servlets.jar file is really only 40k (my copy, anyway)
It wouldn't hurt to add servlets.jar to the jars directory in the distribution, however. Probably save a lot of confusion, and the servlets.jar file is really only 40k (my copy, anyway)