Quantcast
Channel: Dario Pardo's cave » Grails
Viewing all articles
Browse latest Browse all 4

How to set up your machine for Groovy & Grails development

$
0
0

The set up

In order to be able compile and run java, groovy, and grails applications from the command line you will need to add the path to the binaries to the Environment variables (Right click on “My Computer” icon, click on the “Advanced” tab, the “Environment Variables” button should be at the bottom.

  1. Install JDK 1.6
    • Download latest JDK from http://java.sun.com
    • Create a JAVA_HOME system environment variable
    • Append ;%JAVA_HOME%\bin; to the Path environment variable
  2. Install latest Groovy
    • Download the latest groovy from http://groovy.codehaus.org/Download
    • Create a GROOVY_HOME system environment variable
    • Append ;%GROOVY_HOME%\bin; to the Path environment variable
  3. Install Grails
    • Download the latest grails from http://www.grails.org/Download
    • Create a GRAILS_HOME system environment variable
    • Append ;%GRAILS_HOME%\bin; to the Path environment variable

The environment variables set up should look like this (Replace the Value accordingly based on the location of your install).

The Path in your system environment variables as well should look as follows:

;%JAVA_HOME%\bin;%GROOVY_HOME%\bin;%GRAILS_HOME%\bin;

Note: You can copy paste this and append it at the end of your Path variable, be very careful and do not delete any existing entries unless you know what you are doing

The verification

Open up a command prompt and type the commands below.

  1. java -version
  2. groovy -v
  3. grails -version

If you installed all three components correctly, you should see something very similar to this screen shot.


Viewing all articles
Browse latest Browse all 4

Trending Articles