Jump to content
Changes to the Jaspersoft community edition download ×

scriptlet class in imageExpression not found


ktrinad

Recommended Posts

By: Adrian Dimulescu - dadi

scriptlet class in imageExpression not found

2003-12-19 01:46

Hello,

 

this must be really simple but I can't seem to find the solution.

 

I have a scriptlet called

com.kertel.kercash.reporting.jasper.scriptlets.TransactionsMensuellesParSiteChartScriptlet

 

This scriptlet has a method called getBeautifulChart() which, of course, gets a beautiful chart. At least it is supposed to.

 

I have an image in my report whose imageExpression is:

 

((com.kertel.kercash.reporting.jasper.scriptlets.TransactionsMensuellesParSiteChartScriptlet)$P{REPORT_SCRIPTLET}).getBeautifulChart()

 

Trying to compile the report, I get:

 

dori.jasper.engine.JRException: Errors were encountered when compiling report expressions class file: C:classesiReport-0.2.2NbTransactionsParSiteMois.java:153: package com.kertel.kercash.reporting.jasper.scriptlets does not exist value = (java.awt.Image)(((com.kertel.kercash.reporting.jasper.scriptlets.TransactionsMensuellesParSiteChartScriptlet)((dori.jasper.engine.JRAbstractScriptlet)parameter_REPORT_SCRIPTLET.getValue())).getBeautifulChart());

 

It seems to me this is a classpath problem. I wonder if there is some way to dynamically modify the report classpath at compile time or do I have to specify the classpath on the iReport command line ?

 

 

Thanks for you ideas,

Adrian.

 

 

 

 

By: Adrian Dimulescu - dadi

RE: scriptlet class in imageExpression not fo

2003-12-19 03:02

yes, I fixed this by modifying iReprots command line in order to have the proper classpath.

 

I'm not very fond of this solution, though...

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

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...