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

Groovy Starting

Ajay Vikas
Ranch Hand

Joined: Nov 08, 2006
Posts: 66
Hi All,

can anyone please help me to start groovy and its usage in real world applications. Please provide some startup URL's.

- Vikas.
SCJP 1.4.
Hussein Baghdadi
clojure forum advocate

Joined: Nov 08, 2003
Posts: 3479

Personally, I got:
Programming Groovy
Groovy Recipes
Both of "The Pragmatic Programmer"
Tom Purl
Ranch Hand

Joined: May 24, 2002
Posts: 104
The most popular use case for Groovy is probably web development, using the Grails framework. Also, it works very well as a "scripting" language, and a lot of people are using it to write JUnit tests for their Java code.

I would recommend checking out the "Groovy In Action" book if you would like a general overview of the language. Otherwise, Google is your friend.

Tom Purl<br />SCJP 1.4
Marc Peabody
pie sneak

Joined: Feb 05, 2003
Posts: 4727

Groovy can also be very useful in an SOA environment that passes XML messages between services. Groovy's XmlSlurper and MarkupBuilder classes make it so much incredibly easier to work with XML than plain Java!

A good workman is known by his tools.
Marc Peabody
pie sneak

Joined: Feb 05, 2003
Posts: 4727

You should download Groovy and give it a try. It doesn't take too long.

Groovy download page

Groovy Getting Started - this should have you up and running quickly

I highly recommend fiddling around with tutorial code using the GroovyConsole (getting started describes how to start running GroovyConsole).

GroovyConsole is like an extremely bare bones IDE that lets you test out code quickly. It's fun to use.
jon learmouth

Joined: Apr 11, 2007
Posts: 3
Some articles from IBM:

Apress have published a couple of Grails / Groovy books which are good for beginners.
Matthew Taylor

Joined: Jun 13, 2004
Posts: 110
The way I started programming Groovy was by writing tests using it. This is easy because you only have to add the Groovy jar to your project classpath, and you can just write a new test that extends GroovyTestCase. If you don't know how to write the code you want in Groovy, just write it in Java right there in the Groovy class.

Testing is Groovy is much easier than Java, because you can mock things so easily. See

Grails Consultant
I agree. Here's the link:
subject: Groovy Starting
It's not a secret anymore!