Skip to content

Installation Guide

Brandon C edited this page Nov 14, 2024 · 15 revisions

Supported Operating Systems


Linux

1. Update Packages and Install JDK

Update your package manager and install OpenJDK 20:

sudo apt-get update && sudo apt-get install -y openjdk-20-jdk

2. Install SDKMAN!

SDKMAN! is a useful tool for managing Java versions. Install it by running the following commands:

curl -s "https://get.sdkman.io" | bash
source "$HOME/.sdkman/bin/sdkman-init.sh"

3. Install and Set Java 20 with SDKMAN!

Use SDKMAN! to install Java 20 and set it as the default:

sdk install java 20-open
sdk default java 20-open

4. Verify Installation

Check if Java is installed correctly by verifying the version:

java --version

MacOS

1. Install Homebrew

If Homebrew is not already installed, open a terminal and install it by running:

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

Homebrew is a package manager for macOS, which will help us install the required software.

2. Install Maven

After installing Homebrew, use it to install Maven, which is essential for managing and building Java projects:

brew install maven

3. Install Java

Use Homebrew to install the latest version of Java. This will ensure compatibility with the project requirements:

brew install java

If a specific Java version is required, replace java with the appropriate version, such as openjdk@20.

4. Verify Java Installation

To confirm Java was installed correctly, check the version:

java --version

This should display the installed Java version.

Clone this wiki locally