Posts Tagged ‘org/codehaus/groovy/control/CompilationFailedException’

Exception in thread “Thread-6″ java.lang.NoClassDefFoundError: org/codehaus/groovy/control/CompilationFailedException

Sunday, November 29th, 2009

I am using netbeans and iReport 3.6.0. The reports are working fine running from iReport preview but I got an error when I tried to launch the report from the application:

Exception in thread "Thread-6" java.lang.NoClassDefFoundError: org/codehaus/groovy/control/CompilationFailedException
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)

SOLUTION 1:
Open jrxml file and remove language=”groovy”

SOLUTION 2:
Add groovy-all-1.5.5.jar to your library path