Exception java.lang.IncompatibleClassChangeError while running Groovy in Eclipse Juno

Are you on the latest groovy/dependent jars? .

The java.lang.IncompatibleClassChangeError happens due to back ward compatibility issues. The client code needs to be recompiled to resolve it.

The specific error you are seeing is because org.objectweb.asm.ClassVisitor is an Interface in asm 3.2 and a Class in asm 4.0 onwards.


I had the same problem using Spring and Groovy in one module. Spring in 3.1.2 still uses older ASM, Groovy uses the one with the class. While it may be possible to adjust some excludes, I bet it's not always an option.

After reading this thread I decided to do with groovy-all.jar instead of the list of all the Groovy needed libs. If that is an option for you, it might be easy way how to avoid any further problems.