Skip to content

Introduction to the Labs

Welcome to the lab exercises!

Before you start any of the labs, you'll need a recent version of Java 8 installed (later versions might work, but the labs have only been tested with Java 8).

Java Installation Check

Let's first make sure that your Java Development Kit (JDK) is installed and available.

At the command prompt/terminal, type the following

java -version

If all is well, you'll see something like:

java version "1.8.0_161"
Java(TM) SE Runtime Environment (build 1.8.0_161-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.161-b12, mixed mode)

And let's make sure the Java compiler (javac) is also working:

javac -version

Should result in:

javac 1.8.0_161


If you get a "command not found", then Java either wasn't installed properly or is not on your path. See here for installation instructions and troubleshooting.

Spring Tool Suite

We'll be using the Spring Tool Suite (STS), which is a development environment based on Eclipse.

Download and install the STS 3.9.5 from here:

Install Buildship for Gradle Support

We'll be using Gradle, so you'll also need to download the Gradle extension for use inside of STS.

  1. Click on the Help menu and choose Eclipse Marketplace...

  2. Search for the Buildship Gradle Integration 2.0 extension by typing Buildship in the find box:


  1. Click the install button

  2. If it's already installed, you'll see Installed displayed.

Buildship Details: For more information, you can go to:

Clone MealKiosk Repo

From your Git command line, clone the repository:

C:\training> git clone

Import Into Spring Tool Suite

  1. From the File menu, choose Import...

  2. Type in gradle for the import wizard

  3. Select Existing Gradle Project and click Next

  4. On the next screen, just click Next

  5. Use the Browse button to point to where you cloned the project

  6. Click on Finish

Run JUnit Tests

  1. In the Package Explorer, right-click on src/test/java

Select Tests

  1. Select Run As and then JUnit Test

Run As JUnit

All tests should pass.