How to install Groovy on Windows

Before installing Groovy make sure you have JDK 1.4 or above and that the JAVA_HOME system environment variable is set to the location of the installed JDK.

To install Groovy:

  1. Get the latest release of Groovy from
  2. Unzip to a directory like C:\groovy
  3. Create a system environment variable GROOVY_HOME whose value is set to the location from Step 2
  4. Include %GROOVY_HOME%\bin in your PATH environment variable
  5. Test your installation by executing groovy -version

You should see output similar to:
C:\groovy\groovy-1.6.0>groovy -version
Groovy Version: 1.6.0 JVM: 1.6.0_10

Time to get Groovy!

If you do not see output like above and followed steps 1-5 correctly, try clearing the value saved in the CLASSPATH environment variable.

Author: Aaron Ferguson

Share This Post On

Submit a Comment

Your email address will not be published. Required fields are marked *