jasper.gd Posted September 18, 2018 Posted September 18, 2018 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.jrxmlnet.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
Solution jasper.gd Posted September 19, 2018 Author Solution Posted September 19, 2018 I'm going to answer my own question:By replacingcompiler="net.sf.jasperreports.engine.design.JRJavacCompiler"bycompiler="net.sf.jasperreports.engine.design.JRJdtCompiler"the compilation problems are gone.
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