Before you begin programming, you need to install some basic tools.
Java/Groovy
For Java and Groovy you will need to install the following:
JDK (Java Development Kit) such as JDK 8
IDE (Integrated Development Environment) such as NetBeans 8
Groovy
Install Java and NetBeans 8
Download and install the Java JDK 81.
Install Groovy
Go and install Groovy2 2.4
You can Download Groovy3 and install it.4
You may need to set the JAVA_HOME environment variable to the location of your Java installation and GROOVY_HOME to the location of your groovy installation.
Trying It Out
After installing Groovy, you should use it to try coding. Open a command prompt and type groovyConsoleand press enter to begin.
In the groovyConsole, type the following and then press Ctrl+R to run the code:
1 print "hello"
You should keep the Groovy Console open and use it to try all of the examples in this book.
Others
Once you have the above installed, you should probably install:
Go ahead and install these if you're in the mood—I'll wait.
Code on Github
A lot of the code from this book is available on github.com/adamldavis/learning-groovy 7. You can go there at any time to follow along with the book.