appendix. Installation and setup
You can run all the sample applications and their dependencies on your laptop. This appendix tells you what you need to set up your laptop/workstation to run all the examples as you read the book. This book assumes that you have access to a Windows, Linux, or macOS machine configured to run the following:
- Java 21 Development Kit
- Your favorite Java IDE capable of working with maven projects (such as IntelliJ IDEA or Eclipse IDE)
A.1 Setting up the Java development environment
The sample applications are plain Maven projects or are based on Spring Boot 3.x and Java 21 (with Maven as the build tool). Spring Boot is compatible with Java 8, but we chose to use Java 21 because it was a more recent long-term-supported release of Java at the time of writing.
A.1.1 Set up Java 21
The book samples have been tested with OpenJDK, distributed by the AdoptOpenJDK project. You can download and install AdoptOpenJDK 21 at https://adoptium.net/. Other distributions of Java 21 should be 100% compatible with AdoptOpenJDK. Feel free to use them if you have them on your machine.
A.1.2 Set up the Java IDE
The sample projects use Apache Maven as the build system. You can compile the code and run it from the command line, or you can import it into your favorite IDE as a Maven project. The samples have been tested with Eclipse and IntelliJ IDEA. We recommend that you use the most recent stable release of Eclipse or IntelliJ IDEA to work with the code.