How to install Groovy on ubuntu 10.10

Download zip file from http://groovy.codehaus.org/ and unzip to folder

$ sudo unzip groovy-binary-1.7.6.zip -d /opt/groovy/

Edit PATH in the environment file

$ sudo nano /etc/environment

Add the following to the environment file

PATH="... :$GROOVY_HOME/bin"
GROOVY_HOME="/opt/groovy/groovy-1.7.5"

Reload environment variables

source /etc/environment

Add symbolic links to the usr/bin folder

$ sudo ln -sf /opt/groovy/groovy-1.7.5/bin/* /usr/bin/.

Open a new terminal. Test installation

$ groovy --version
Groovy Version: 1.7.5 JVM: 1.6.0_20
This entry was posted in Ubuntu. Bookmark the permalink.

Leave a Reply