JavaDude's Groovy Snippets and Tutorials

December 15, 2009

Groovy: Start from the Scratch

Filed under: General — devdude @ 3:20 pm
Tags: ,

You have nothing but an installed Ubuntu Box, a JDK and no other clue ?

  • Download the latest stable Groovy release from groovy.codehaus.org
  • Unzip the file (maybe to your home folder) and keep the release name, like groovy-1.6.7
  • Modify your .bashrc (gedit ~/.bashrc), usually you need to add this:
    ### GROOVY
    export GROOVY_HOME=/home/whateveryourusername/groovy-1.6.7
    export PATH=$PATH:$GROOVY_HOME/bin
    
  • Open a new shell and type groovy -version and you should get something like this:
    Groovy Version: 1.6.7 JVM: 1.6.0_16
  • Start the console with groovyConsole

    The Groovy Console

  • You are ready, lets get rolling with some snippets.
Advertisement

Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Theme: Rubric. Blog at WordPress.com.

Follow

Get every new post delivered to your Inbox.