This document describes how to install a binary distribution of Groovy. For those familiar with tools like Ant or Maven these steps will be very familiar.

  • download a binary distribution of Groovy and unpack the
distribution into some file on your local file system.
  • set your GROOVY_HOME environment variable to the directory you unpacked
the distribution
  • add GROOVY_HOME/bin to your PATH environment variable.
  • you should now have Groovy installed properly. You can test this by typing
the following in a command shell...

groovysh

Which should create an interactive groovy shell where you can type Groovy statements. Or to run the Swing interactive console type

groovyConsole

To run a specific groovy script type

groovy SomeScript.groovy