JasperReports的编译错误 [英] JasperReports compilation error
问题描述
我试图编译使用Ant脚本和Java我JasperReports的模板。我得到这个错误:
I am trying to compile my JasperReports template using an Ant script and Java. I am getting this error:
jasper java.lang.NoClassDefFoundError:
org/codehaus/groovy/control/CompilationFailedException
有什么复杂的模板,但我还是不能编译。
There is nothing complex in the template, but I still can't compile.
推荐答案
您必须设置语言
值在模板中去渣。有两种方法可以做到这一点:
You will have to set the language
value in your template to Java. There are two ways you can do this:
-
如果您正在使用的 iReport的,的选择根对象的报告检查的(具有相同的名称作为报表)。然后在属性的窗口中,选择的的Java 的距离的语言的下拉。
If you are using iReport, select the root object in your Report Inspector (the one with the same name as your report). Then in the Properties window, select Java from the Languages drop-down.
如果您正在编辑的JRXML文件的原始加价,删除 LANGUAGE =常规
从文件完全。
If you are editing the raw mark-up in the JRXML file, remove language="groovy"
from the file altogether.
然后尝试重新编译 - 你应该进行排序。 :)
Then try to recompile - you should be sorted. :)
这篇关于JasperReports的编译错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!