Skip to content

Instantly share code, notes, and snippets.

@hiperbou
hiperbou / install-java-versions.md
Created March 15, 2024 15:58 — forked from ofhouse/install-java-versions.md
Install and manage multiple Java SDK versions on Ubuntu

Install and manage multiple Java versions on Ubuntu

This guide shows per example the installation of the Java SDK versions 8 (LTS, already installed) and 11 (LTS).

1. Check which Java versions are avaialable or already installed

apt --names-only search "openjdk-.*jre$"

> Sorting... Done