Appendix A. Installation and Setup

 

This appendix covers

  • Setting up a Java development environment to use with the sample apps
  • Where to get the sample code for the book

You can run all the sample applications and their dependencies on your laptop. This appendix tells you what you need to setup your laptop / workstation to run all the examples as you read the book. This book assumes you have access to a Windows, Linux, or MacOS machine that will be configured to run:

  • Java 11 Development Kit
  • Your Favorite Java IDE capable of working with maven projects (E.g. IntelliJ IDEA, Eclipse IDE)

A.1 Setting up Java Development Environment

The sample applications are either plain Maven projects or they are based on Spring Boot 2.3.x and Java 21 (with Maven as a build tool). Spring Boot is compatible with Java 8 but we have chosen to use Java 21 because it is a more recent long term supported release of Java at the time of writing.

A.1.1 Setup Java 11

The book samples have been tested with OpenJDK distributed by the AdoptOpenJDK project. You can download and install AdoptOpenJDK 21 from https://adoptopenjdk.net/ . Other distributions of Java 21 should be 100% compatible with AdoptOpenJDK feel free to use those if you have them on your machine.

A.1.2 Setup A Java IDE

A.2 Obtaining the Book Samples