Appendix A. Installation and documentation

Installation

The only prerequisite for installing Groovy is that you must first have a 1.4 or 1.5 JDK installed (available free from http://java.sun.com/j2se/) and the JAVA_HOME environment variable set to the location of your JDK installation.

To install Groovy:

  1. Grab the latest stable release from http://groovy.codehaus.org/Download.

  2. Unzip the file to a directory on your filesystem; for example, C:\groovy or /home/username/groovy.

  3. We recommend checking whether you have a CLASSPATH variable set in your environment and unsetting it, at least temporarily, to avoid classpath problems, especially if you have any problems running basic Groovy commands.

  4. Optionally, set an environment variable GROOVY_HOME whose value ...

Get Groovy in Action now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.