问题
When I create a report using JasperReports without chart form Java application and I call it from jbutton
I get my report on JRViewer, its mean that my application generate the report when i didn't put any chart in this report but once i modify this report and i add charts the programm generate the following error:
org.jfree.chart.axis.NumberTickUnitSource cannot be cast to org.jfree.chart.axis.TickUnits
I tired to search how to solve this problem but i didn't find nothing on NET
回答1:
solved this issue, include jfreechat-1.0.17.jar and jcommon-1.0.21.jar libraries in my project.
Error org.jfree.chart.axis.NumberTickUnitSource cannot be cast to org.jfree.chart.axis.TickUnits
来源:https://stackoverflow.com/questions/39921064/printing-with-jrviewer-report-with-jasper-report-which-contain-a-chart-5-5-0