Reputation: 11
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
Upvotes: 1
Views: 444
Reputation: 11
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
Upvotes: 1