Jump to content
We've recently updated our Privacy Statement, available here ×

Using jar customization chart library with JSS 6.1.1


jesus.castillo
Go to solution Solved by jesus.castillo,

Recommended Posts

I'm trying to use a chart customizer class with JSS 6.1.1. But I can't call it from another java aplication.

I added the class to the project in JSS using Project->Properties->Java Build Path->Libraries: Add External JARs.

And then in the "Customizer Class" parameter of the BarChart which im trying to customize.

When I hit preview in JSS the report is succesfully created, however when I try to generate it from another Java aplication the following error appears 

" Script Error : net.sf.jasperreports.engine.JRRuntimeException: Could not create chart customizer instance. @ line48: col1"

Im using this syntaxis to generate the report (using jasperreports-6.1.0 jar)

jasperReport =  JasperCompileManager.compileReport(reportSource);
jasperPrint =  JasperFillManager.fillReport(jasperReport, params, con); 
 
Note: when I don't use the customizer class the report generates without problems.

The class was created in eclipse  using  JavaSE-1.7, jasperreports-6.1.0.jar, jcommon-1.0.23.jar, jfreechart-1.0.19-demo.jar 

 

Any ideas why this is not working?

 

 

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...