These instructions describe how to install a binary distribution of Groovy.
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 |
Alternative Installation on Mac OS X
Set up MacPorts
Open Terminal
sudo port install groovy |