Creating a jar artifact containing Groovy classes
I seem to be having some trouble including my Groovy classes in a jar artifact.
I create a jar artifact through IDEA and include all of the compiled output from my application. The jar file appears to contain all of my Java and Groovy class files; however, none of my Groovy generated class files are recognized by the application using the jar. It gives me the following error message:
Exception in thread "main" java.lang.NoClassDefFoundError: groovy/lang/GroovyObject
Does anyone have any suggestions on how to remedy the situation?
Thanks!
Mike
Please sign in to leave a comment.
Hello Michael,
Looks like you need to include the Groovy runtime either directly into the
jar or make it available in the classpath of the jar.
--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"
Dmitry,
Thank you for your prompt reply. Pardon my lack of knowledge on the subject, but would adding the groovy library to the jar artifact suffice?
Thanks for the help