使用Java ireport生成报告时出错:net.sf.jasperreports.engine.JRException:编译报告Java源文件时出错 [英] Error in generating report with java ireport: net.sf.jasperreports.engine.JRException: Error compiling report java source files
问题描述
当我按下用于创建报告的按钮时,在我开发的PC上可以,在另一台上也可以,在另一台上它可以给我错误:
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:编译报告Java源文件时出错:C:... \ file_1188085947562_837366.java
net.sf.jasperreports.engine.JRException: Error compiling report java source files : C:.....\file_1188085947562_837366.java
我在stackoverflow上也读到一个修复程序,其中包括Jasper-jdt-compiler.jar
,但是在我下载的jasperproject
zip中没有这样的jar,我在哪里可以找到它?以及为什么它不存在?下载的Jasper项目是6.1.0版
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
推荐答案
我已经对此问题进行了一些调查. org.eclipse编译器曾经被称为jtd-compiler,但是在最新的jasper report relase中,它被称为
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
因此它仍然包含在jasper project/lib中,但是具有另一个名称
So it is still included in jasper project/lib, but with another name
玩得开心
这篇关于使用Java ireport生成报告时出错:net.sf.jasperreports.engine.JRException:编译报告Java源文件时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!