NoClassDefFoundError: CompilerConfiguration on Rebuild/Make
When I do a Rebuild/Make Project or Make Module I get the following error:
Exception in thread "main" java.lang.NoClassDefFoundError: org/codehaus/groovy/control/CompilerConfiguration.
"Run" works fine (runs grails run-app) as long as I don't have Make selected in the Run configuration. Am I doing something wrong?
Thanks,
Please sign in to leave a comment.
Could you please post a screenshot of your module dependencies in Project Settings, Dependencies tab?
Sure thing, here you go.
Attachment(s):
md.jpg
Does removing unnecessary "GROOVY" library reference help?
No. (see attached). FYI - This is not a high priority for me since Run works fine. I'd rather have the breakpoints working.
Thanks,
Attachment(s):
md2.jpg
whoops, ignore the pic from the previous post. same problem with only GRAILS (no GROOVY) as a dependency
Attachment(s):
md3.jpg
I had the same problem ... I think you were on the right track ... My problem was that I had changed where I installed both groovy and grails on my drives ... so I had to make sure that under - project settings --> modules (on the right is the "Facet" panel ) with "Configure Groovy/Grails" button. I used this to change my Groovy and Grails installation directory settings. Not sure if this is your issue.
good luck
-beau
Thanks Beaumont, that solved my problem.
Eric, I think it's because of problems with Groovy classloaders and because of we run our GroovyCompiler in separate process. Try last release, it seems like we fixed this issue.