Why do I get compilation error “org/codehaus/groovy/control/CompilationFailedException”?

前端 未结 6 1384
终归单人心
终归单人心 2020-11-30 01:24

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/g         


        
6条回答
  •  情话喂你
    2020-11-30 02:22

    You will have to set the language value in your template to Java. There are two ways you can do this:

    1. 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.

    2. 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. :)

提交回复
热议问题