2004 IR Help Posted August 20, 2006 Share Posted August 20, 2006 By: Priyanka - priyanka_dreamz Scriptlet Error 2005-03-06 22:17 Hi All, I am getting the following error while compiling jrxml to jasper, in a report which uses a scriptlet. The compiler somehow doesnt recognise the Scriptlet object and gives the following error on compiling. C:jasperTMOreportsReport3.java:129: cannot resolve symbol symbol : class Scriptlet location: class Report3 value = (java.lang.String)(((Scriptlet)((net.sf.jasperreports.engine.JRAbstractScriptlet)parameter_REPORT_SCRIPTLET.getValue())).getFormattedOutput()); ^ C:jasperTMOreportsReport3.java:262: cannot resolve symbol symbol : class Scriptlet location: class Report3 value = (java.lang.String)(((Scriptlet)((net.sf.jasperreports.engine.JRAbstractScriptlet)parameter_REPORT_SCRIPTLET.getValue())).getFormattedOutput()); ^ C:jasperTMOreportsReport3.java:395: cannot resolve symbol symbol : class Scriptlet location: class Report3 value = (java.lang.String)(((Scriptlet)((net.sf.jasperreports.engine.JRAbstractScriptlet)parameter_REPORT_SCRIPTLET.getValue())).getFormattedOutput()); ^ 3 errors net.sf.jasperreports.engine.JRException: Errors were encountered when compiling report expressions class file: See error messages above. at net.sf.jasperreports.engine.design.JRAbstractJavaCompiler.compileReport(JRAbstractJavaCompiler.java:155) at net.sf.jasperreports.engine.design.JRDefaultCompiler.compileReport(JRDefaultCompiler.java:137) at net.sf.jasperreports.engine.JasperCompileManager.compileReportToFile(JasperCompileManager.java:142) at net.sf.jasperreports.engine.JasperCompileManager.compileReportToFile(JasperCompileManager.java:114) at report3App.main(report3App.java:30) I have already specified the scriptlet class name in the scriptletClass attribute of the jasper report tag in the jrxml file.. Please let me know the possible reasons for which this error occurs. Thanks, Priyanka By: Tinku - tinku RE: Scriptlet Error 2005-03-09 01:45 You have to pu the class Scriptlet in the same folder as that of the jrxml file.(In the sample it is given as so) or better make a packge and put in the package 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