stevenell Posted November 6, 2008 Share Posted November 6, 2008 can I run a report in iReport nb 3.1.1 that uses a scriptlet? So far my efforts have resulted injava.lang.ClassNotFoundException: will not load classes from default package (workordersScriptlet) Also, can I just extend JRAbstractScriptlet and still run the report from within ireport 3.1.1 or do I have to extend IReportScriptlet? thanksSteve Link to comment Share on other sites More sharing options...
stevenell Posted November 6, 2008 Author Share Posted November 6, 2008 in case anyone else is having trouble w/ thisi got around thisthe book says that iReport will compile the scriptlet in the same directory as the report -- i had trouble with that. i compiled it myself and put the class file in one of the classpath additions... that is working Steve Link to comment Share on other sites More sharing options...
svenn Posted November 6, 2008 Share Posted November 6, 2008 JRAbstractScriptlet is an interface so you must implement all it's methods. You can extend JRDefaultScriptlet. I prefer to use one of the two approaches as then you can create a Scriptlet class that you can point all your reports to. It all depends on what your doing with it. 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