t3_chris Posted July 2, 2009 Share Posted July 2, 2009 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 More sharing options...
dnvsrikanth Posted July 2, 2009 Share Posted July 2, 2009 Hi, Make a jar file with scriptlet class and include the jar file in the classpath of iReport. It will work... DNV Srikanth. Link to comment Share on other sites More sharing options...
t3_chris Posted July 3, 2009 Author Share Posted July 3, 2009 Thanks! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now