Compilation fails with jfreechart 1.0.13

Onkar Shinde <[email protected]>
Newsgroups gmane.comp.java.cruise-control.user
Message-ID <[email protected]>
Hi,

I am trying to build cruisecontrol 2.8.2 from source against the
libraries available in system (process of Debian packaging). The
jfreechart version available in my system is 1.0.13 and cruisecontrol
fails to build against that. I was able to fix some errors by changing
import statements as follows.
1. Replace import org.jfree.chart.renderer.StandardXYItemRenderer with
org.jfree.chart.renderer.xy.StandardXYItemRenderer.
2. Replace import org.jfree.data.DefaultPieDataset with
org.jfree.data.general.DefaultPieDataset.

But I am not able to solve rest of the errors. I am pasting them here.
Any help in solving them is appreciated.

    [javac] /tmp/buildd/cruisecontrol-2.8.2/reporting/jsp/src/net/sourceforge/cruisecontrol/chart/TimeChartData.java:78:
cannot find symbol
    [javac] symbol  : method getDataPair(org.jfree.data.time.Minute)
    [javac] location: class org.jfree.data.time.TimeSeries
    [javac]             if (seriesToAddTo.getDataPair(timePeriod) == null) {
    [javac]                              ^
    [javac] /tmp/buildd/cruisecontrol-2.8.2/reporting/jsp/src/net/sourceforge/cruisecontrol/chart/TimeChartData.java:124:
cannot find symbol
    [javac] symbol  : method getVerticalAxis()
    [javac] location: class org.jfree.chart.plot.XYPlot
    [javac]         NumberAxis yAxis = (NumberAxis) plot.getVerticalAxis();
    [javac]                                             ^
    [javac] /tmp/buildd/cruisecontrol-2.8.2/reporting/jsp/src/net/sourceforge/cruisecontrol/chart/TimeChartData.java:127:
cannot find symbol
    [javac] symbol  : method setMinimumAxisValue(int)
    [javac] location: class org.jfree.chart.axis.NumberAxis
    [javac]         yAxis.setMinimumAxisValue(0);
    [javac]              ^
    [javac] /tmp/buildd/cruisecontrol-2.8.2/reporting/jsp/src/net/sourceforge/cruisecontrol/chart/TimeChartData.java:128:
cannot find symbol
    [javac] symbol  : method setMaximumAxisValue(int)
    [javac] location: class org.jfree.chart.axis.NumberAxis
    [javac]         yAxis.setMaximumAxisValue(24 * 60 * 60 * 1000);
    [javac]              ^
    [javac] /tmp/buildd/cruisecontrol-2.8.2/reporting/jsp/src/net/sourceforge/cruisecontrol/chart/TimeChartData.java:136:
cannot find symbol
    [javac] symbol  : method getHorizontalValueAxis()
    [javac] location: class org.jfree.chart.plot.XYPlot
    [javac]         DateAxis xAxis = (DateAxis) plot.getHorizontalValueAxis();
    [javac]                                         ^
    [javac] /tmp/buildd/cruisecontrol-2.8.2/reporting/jsp/src/net/sourceforge/cruisecontrol/chart/TimeChartData.java:145:
cannot find symbol
    [javac] symbol  : method setDefaultShapeFilled(boolean)
    [javac] location: class org.jfree.chart.renderer.xy.StandardXYItemRenderer
    [javac]         renderer.setDefaultShapeFilled(true);
    [javac]                 ^
    [javac] /tmp/buildd/cruisecontrol-2.8.2/reporting/jsp/src/net/sourceforge/cruisecontrol/chart/XPathChartData.java:85:
warning: [deprecation]
TimeSeries(java.lang.Comparable,java.lang.Class) in
org.jfree.data.time.TimeSeries has been deprecated
    [javac]             TimeSeries serie = new
TimeSeries(data.getName(), Minute.class);
    [javac]                                ^
    [javac] /tmp/buildd/cruisecontrol-2.8.2/reporting/jsp/src/net/sourceforge/cruisecontrol/chart/XPathChartData.java:129:
cannot find symbol
    [javac] symbol  : method getHorizontalValueAxis()
    [javac] location: class org.jfree.chart.plot.XYPlot
    [javac]         DateAxis xAxis = (DateAxis) plot.getHorizontalValueAxis();
    [javac]                                         ^
    [javac] /tmp/buildd/cruisecontrol-2.8.2/reporting/jsp/src/net/sourceforge/cruisecontrol/chart/XPathChartData.java:138:
cannot find symbol
    [javac] symbol  : method setDefaultShapeFilled(boolean)
    [javac] location: class org.jfree.chart.renderer.xy.StandardXYItemRenderer
    [javac]         renderer.setDefaultShapeFilled(true);
    [javac]                 ^



Onkar

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.