Courses
Module 1. Initialize Project
Module 2. REST services

Install Java

Install Java

To install Java we will use SDKMAN!

SDKMAN! is a tool for managing parallel versions of multiple Software Development Kits on Unix based systems. It’s useful for installing multiple versions of Java, Maven, Spring CLI, etc.

1.Install SDKMAN!

Install curl, unzip, and zip.

Terminal window
sudo apt install -y unzip zip curl

The curl tool is required to download the installation script.

unzip and zip tools are used in the installation script.

Download and execute the installation script.

Terminal window
curl -s "https://get.sdkman.io" | bash

Complete the installation.

Terminal window
source ~/.sdkman/bin/sdkman-init.sh

Check the SDKMAN! version

Terminal window
sdk version

2.Install Java

Check available Java versions.

Terminal window
sdk list java

Install Java using SDKMAN!.

Terminal window
sdk install java 25.0.1-tem

Check Java installation.

Terminal window
java --version