Error in generating report with java ireport: net.sf.jasperreports.engine.JRException: Error compiling report java source files

守給你的承諾、 提交于 2020-01-04 19:52:19

问题


When i press the button designed to create the report, in the PC on which i developed is ok, on another is ok, on another one it gives me the error:

net.sf.jasperreports.engine.JRException: Error compiling report java source files : C:.....\file_1188085947562_837366.java

I read, on stackoverflow too, that a fix is to include Jasper-jdt-compiler.jar, but in my downloaded zip of jasperproject there is no such jar, where can i find it? And why it is not present? Jasper project downloaded is version 6.1.0


回答1:


I have done some investigations into this question. The org.eclipse compiler was once called jtd-compiler, but in latest jasper report relase it is called

ecj-4.3.1.jar

So it is still included in jasper project/lib, but with another name

Have fun




回答2:


I'm also faced to this error after build .jar file. I fixed this problem by copy jdt-compiler-3.1.1.jar file to /dist/bin folder. Try this!



来源:https://stackoverflow.com/questions/33121822/error-in-generating-report-with-java-ireport-net-sf-jasperreports-engine-jrexce

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!