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.

Install SDKMAN!

sudo apt install -y unzip zip curl

Install curl, unzip, and zip.

The curl tool is required to download the installation script.

unzip and zip tools are used in the installation script.

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

Download and execute the installation script.

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

Complete the installation.

sdk version

Check the SDKMAN! version

Install Java

sdk list java

Check available Java versions

sdk install java 25.0.1-tem

Install Java using SDKMAN!

java --version

Check Java installation