Jump to content
Changes to the Jaspersoft community edition download ×

Built-in method DATEFORMAT leads to compile errors

Go to solution Solved by jasper.gd,

Recommended Posts

Hi community,

Somewhere in my report I use the built-in funcion DATEFORMAT().
I can compile the report in JS Studio 6.5.1 without problems.

However, when I want to compile the report via Ant (using JRJavacCompiler) I get this error:

Error compiling report design : C:.....MyReport.jrxml
net.sf.jasperreports.engine.JRException: Errors were encountered when compiling report expressions class file:
C:.... : error: cannot find symbol
      value = DATEFORMAT(((java.util.Date)parameter_FROM_DATE.getValue()), "dd/MM/YYYY HH:mm:ss") + " - " + DATEFORMAT(((java.util.Date)parameter_TO_DATE.getValue()), "dd/MM/YYYY HH:mm:ss"); //$JR_EXPR_ID=21$
symbol:   method DATEFORMAT(Date,String)

And yes, the jasperreports-functions.jar file is available in Ant's classpath.
What am I missing?

Kind regards

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

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