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

前端 未结 6 1386
终归单人心
终归单人心 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:18

    Your are missing the a important library groovy in path.

    case 1 : if you are using Maven add this dependency with compatible version in pom.xml

    
        org.codehaus.groovy
        groovy-all
        3.0.4
    
    

    Case 2 : Second way is add the compatible version of groovy jar in class path

    Url to download groovy jar : http://groovy-lang.org/download.html

提交回复
热议问题