Jump to content

JasperCompileManager can't compile Rep w Scriptlet


t3_chris

Recommended Posts

Hi!

 

Up to now i've used JasperCompileManager.compileReport(inputStream) to compile my reports.
This worked without any problems as long as the jrxml-files i wanted to compile didn't contain any iReport-handled scriptlets.
When i try to compile a report-jrxml which contains a reference to a scriptlet, i get the following exception from the compile manager:

 


net.sf.jasperreports.engine.design.JRValidationException: Report design not valid :
         1. java.lang.ClassNotFoundException: Will not load classes from default package (Scriptlet_DemoScriptlet)


What can i do to compile reports which contain Scriptlets? Is there any way to supply the Scriptlet.java-File to the compile manager?

This is how my .jrxml references to the scriptlet:

 


<jasperReport
 ...
    scriptletClass="Scriptlet_DemoScriptlet"
...
    <property name="ireport.scriptlethandling" value="1" />
...
</jasperReport>

 


 

 

Thanks for your help in anticipation!

 

Best Regards from Austria,

  christian

Link to comment
Share on other sites

  • Replies 2
  • 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...