Installing Java Jdk Jun 2026

javac --version

The free, open-source reference implementation of the Java SE platform. Popular distributions include Adoptium (Eclipse Temurin) , Amazon Corretto , and Microsoft Build of OpenJDK .

Compile and run it:

After installation, verify that Java JDK has been successfully installed by following these steps:

java --version

If you want to develop in Java, install the JDK. If you just want to run Minecraft, you only need the JRE.

Before we start typing commands, let's clarify the jargon: installing java jdk

# Update your package list sudo apt update

The JDK installation is the foundation — everything else builds from here. If you just want to run Minecraft, you only need the JRE

Run where java (Windows) or which java (Mac/Linux) to see which one is being used.

You can set environment variables in your shell configuration file. You can set environment variables in your shell

Contact