Home

Install Java (Linux)

Home » Java Quick Start » Install Java » Install Java (Linux)

Is Java not available on your Linux computer yet?

No problem, let's use an installer to make the process really easy.

This is a direct link to get the Azul Zulu distribution, version 21, as an installer for a Debian-based system (Ubuntu, PopOS, Linux Mint, and more):
https://cdn.azul.com/zulu/bin/zulu21.36.17-ca-jdk21.0.4-linux_amd64.deb

Many more distributions and versions of Java exist. You can read more info here on how to find another distribution or version.

Download the .deb file, open a Terminal, and run the following commands.

$ cd ~/Downloads
$ sudo apt install ./DOWNLOADED_VERSION.deb
// For instance:
$ sudo apt install ./zulu21.36.17-ca-jdk21.0.4-linux_amd64.deb

Close the Terminal and open a new one.

Now, you can check the Java installation as follows.

$ java -version
openjdk version "21.0.4" 2024-07-16 LTS
OpenJDK Runtime Environment Zulu21.36+17-CA (build 21.0.4+7-LTS)
OpenJDK 64-Bit Server VM Zulu21.36+17-CA (build 21.0.4+7-LTS, mixed mode, sharing)

For another Linux-based system, you may need to select a .rpm download and install it as follows.

sudo yum install <package>.rpm

That's it. You're now ready to run Java programs and, even better… create your own!

Subscribe to foojay updates:

https://foojay.io/feed/
Copied to the clipboard