Skip to main content

How to install Java 21

What is Java?​

Java is a programming language, but in this context, we are referring to JVM (Java virtual machine).

w3schools

When we compile a Java program, then bytecode is generated. Bytecode is the source code that can be used to run on any platform [via JVM].

Source: https://www.w3schools.in/java/java-virtual-machine/

abbreviations
  • JDK - Java Development Kit
  • JRE - Java Runtime Environment

Java version 21​

Currently, the app requires JDK 21 or higher to compile.

How to download JDK 21?​

JDK 21 can be downloaded at various websites. Here are some of them:

DistributorNoteLink to download
OpenJDKWorst WebUIhttps://jdk.java.net/archive/
Adoptium (Eclipse Temurin)More optionshttps://adoptium.net/temurin/releases/
OracleFeaturistic; Support latest versionhttps://www.oracle.com/java/technologies/downloads/

In this article, we will guide you through Oracle website, since they have the most up-to-date Java and website is easy enough to navigate.

Oracle Java download page

Download page contains just enough information about the version you're about to download:

  • Version of Java
    Oracle Java versions

  • Operating system
    Oracle Java OS

Choosing the right package

Oracle offers various method to install Java on your machine from executable file to compressed archive.

  • Better to install by your package manager
  • Use compressed archive if you now what you're doing.
note

In the future, this section will be replaced with actual video going through the installation process.