© Adam L. Davis 2016

Adam L. Davis, Learning Groovy, 10.1007/978-1-4842-2117-4_1

1. Software to Install

Adam L. Davis

(1)New York, USA

Electronic supplementary material

The online version of this chapter (doi:10.​1007/​978-1-4842-2117-4_​1) contains supplementary material, which is available to authorized users.

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

AA426440_1_En_1_Figa_HTML.jpgInstall Java and NetBeans 8

Download and install the Java JDK 81.

AA426440_1_En_1_Figa_HTML.jpgInstall 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.

AA426440_1_En_1_Figa_HTML.jpgIn 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:

  • SDKMAN 5: The Software Development Kit Manager

  • Git 6: A version control program

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.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.144.26.138