Jump to content
Changes to the Jaspersoft community edition download ×

Problems implementing scriptlets in iReports

2006 IR Open Dicussion

Recommended Posts

By: Knightfilm - knightfilm

Problems implementing scriptlets in iReports

2006-03-09 15:08

I have a application that converts and stores a time value as a long integer in a database. I am trying to create a class method to use a long int value queried from the database, perform a series of calculations (i.e. multiplication, division etc...) and then convert the result to a ‘String’ and finally format appropriately so I can see the time result again. I am however having issues with getting iReports to recognize the Java class method. I have added the method into a scriplet using the scriplet editor in iReports and am trying to extend it.businesslogic.ireports.IreportScriptlet so that I can access my method. However, when I try to compile the report I get an error stating that it.businesslogic.ireports.IreportScriptlet cannot be resolved or is not a type and the same for the parameter REPORT_SCRIPTLET.

I am calling the method as follows:


The method Convert is declared as follows:

public static String Convert(long a)


<some code in here>



The iReports manual seems to be somewhat contradictory on how to properly include scriptlets. Any help on how to properly create, include, compile and use scriptlets, or even an answer to the above problem would be much appreciated. Thanks in advance for the help!








By: cyclistca - cyclistca

RE: Problems implementing scriptlets in iReports

2006-03-10 09:32

I found the following helpful when I was trying to implement the default scriptlet classes.


- In Google search for "Jasper scriplets"


- Try searching in the Jasper forums on Sourceforge.

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

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