File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Groovy and the fly likes Making Java Groovy - Integration Issues ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Languages » Groovy
Bookmark "Making Java Groovy - Integration Issues ?" Watch "Making Java Groovy - Integration Issues ?" New topic

Making Java Groovy - Integration Issues ?

paul nisset
Ranch Hand

Joined: May 13, 2009
Posts: 201

Groovy has been around a while but I still don't know how it integrates with java .

I understand that it uses a jvm to run.
I'm still a little confused as to what Groovy actually is. Is it a compiler ?
Can it be integrated into an existing java project and then compiled using the the java (JDK) compiler or do you have to create a new project in Groovy and import your previous Java project/files ?
For instance, in another post you mentioned that you can create your tests in Groovy for an existing Java project.
Unless I could integrate it into my IDE where my java project is,it would be simpler to just use JUnit .

Is there an eclipse plug in for it?


Kenneth A. Kousen
gunslinger & author
Ranch Hand

Joined: Sep 18, 2002
Posts: 99
Hi Paul,

Groovy is a separate language with its own compiler. The compiler generates bytecodes that run on the JVM. If you are an Eclipse user, there is a Groovy plugin (just google for it) that you can add. Then, when you create a Groovy project, you can add both Groovy and Java files to the project and everything will compile together. If you have an existing Java project, you can convert it to a Groovy project in your IDE and add tests written in Groovy, whether they are JUnit or something else, like Spock.


Kenneth A. Kousen, Ph.D. (assorted certs), President, Kousen IT, Inc.
Author of Making Java Groovy -
paul nisset
Ranch Hand

Joined: May 13, 2009
Posts: 201
Thanks Ken.
That is useful to know.
I should check out the plug in.
I agree. Here's the link:
subject: Making Java Groovy - Integration Issues ?
It's not a secret anymore!