when build the code : ant dist
,got this:
Code Block | ||
---|---|---|
| ||
Error compiling report design : D:\opt\bahmni\OpenElis\openelis\WebContent\WEB-INF\reports\ConfirmationSummary.jrxml |
...
[jrc] net.sf.jasperreports.engine.JRException: Errors were encountered when compiling report expressions class file: |
...
[jrc] 1. The type java.lang.CharSequence cannot be resolved. It is indirectly referenced from required .class files |
...
[jrc] /* |
...
[jrc] ^ |
...
[jrc] 1 errors |
...
[jrc] |
...
[jrc] at net.sf.jasperreports.engine.design.JRAbstractCompiler.compileReport(JRAbstractCompiler.java:191) |
...
[jrc] at net.sf.jasperreports.engine.JasperCompileManager.compileReport(JasperCompileManager.java:215) |
...
[jrc] at net.sf.jasperreports.engine.JasperCompileManager.compileReportToFile(JasperCompileManager.java:131) |
...
[jrc] at net.sf.jasperreports.engine.JasperCompileManager.compileReportToFile(JasperCompileManager.java:113) |
...
[jrc] at net.sf.jasperreports.ant.JRAntCompileTask.compile(JRAntCompileTask.java:411) |
...
[jrc] at net.sf.jasperreports.ant.JRAntCompileTask.execute(JRAntCompileTask.java:254) |
...
[jrc] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292) |
...
[jrc] at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source) |
...
[jrc] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) |
...
[jrc] at java.lang.reflect.Method.invoke(Method.java:498) |
...
[jrc] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) |
...
[jrc] at org.apache.tools.ant.Task.perform(Task.java:348) |
...
[jrc] at org.apache.tools.ant.Target.execute(Target.java:435) |
...
[jrc] at org.apache.tools.ant.Target.performTasks(Target.java:456) |
...
[jrc] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1393) |
...
[jrc] at org.apache.tools.ant.Project.executeTarget(Project.java:1364) |
...
[jrc] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) |
...
[jrc] at org.apache.tools.ant.Project.executeTargets(Project.java:1248) |
...
[jrc] at org.apache.tools.ant.Main.runBuild(Main.java:851) |
...
[jrc] at org.apache.tools.ant.Main.startAnt(Main.java:235) |
...
[jrc] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280) |
...
[jrc] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109) |
...
[jrc] File : D:\opt\bahmni\OpenElis\openelis\WebContent\WEB-INF\reports\Patient_Indeterminate_ByLocation.jrxml ... OK. |
...
|
Solution: Use JDK 7 for compiling OpenELIS codebase. ELIS (due to some Jasper issues) needs JDK7 to compile. It can be run in JDK8, but cannot be compiled in JDK8 currently.