Jump to content
We've recently updated our Privacy Statement, available here ×

scriptlets in 3.1.1


stevenell

Recommended Posts

can I run a report in iReport nb 3.1.1  that uses a scriptlet?   So far my efforts have resulted in

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

 

thanks

Steve

 

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

in case anyone else is having trouble w/ this

i got around this

the 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

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

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