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

problems with DateTime functions


oiballab

Recommended Posts

I can compile and see my report in Jasper Studio , but when I try it i a Java progran I get this merror message

net.sf.jasperreports.engine.JRException: Errors were encountered when compiling report expressions class file:
F:DocumentsNetBeansProjectsGestioneAsiloNuovoMensile_A4_1591202921891_7717.java:239: error: cannot find symbol
                value = YEAR(TODAY()); //$JR_EXPR_ID=16$
                             ^
  symbol:   method TODAY()
  location: class Mensile_A4_1591202921891_7717
F:DocumentsNetBeansProjectsGestioneAsiloNuovoMensile_A4_1591202921891_7717.java:372: error: cannot find symbol
                value = YEAR(TODAY()); //$JR_EXPR_ID=16$
                             ^
  symbol:   method TODAY()
  location: class Mensile_A4_1591202921891_7717
F:DocumentsNetBeansProjectsGestioneAsiloNuovoMensile_A4_1591202921891_7717.java:505: error: cannot find symbol
                value = YEAR(TODAY()); //$JR_EXPR_ID=16$
                             ^
  symbol:   method TODAY()
  location: class Mensile_A4_1591202921891_7717
3 errors

How can I solve it?

Thanks

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