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,

8 comments
Comment actions Permalink

Could you please post a screenshot of your module dependencies in Project Settings, Dependencies tab?

0
Comment actions Permalink

Sure thing, here you go.



Attachment(s):
md.jpg
0
Comment actions Permalink

Does removing unnecessary "GROOVY" library reference help?

0
Comment actions Permalink

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
0
Comment actions Permalink

whoops, ignore the pic from the previous post. same problem with only GRAILS (no GROOVY) as a dependency



Attachment(s):
md3.jpg
0
Comment actions Permalink

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

0
Comment actions Permalink

Thanks Beaumont, that solved my problem.

0
Comment actions Permalink

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.

0

Please sign in to leave a comment.