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 17, as an installer for a Debian-based system (Ubuntu, PopOS, Linux Mint, and more):

https://cdn.azul.com/zulu/bin/zulu17.38.21-ca-jdk17.0.5-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 ./zulu17.38.21-ca-jdk17.0.5-linux_amd64.deb 

Close the Terminal and open a new one.

Now, you can check the Java installation as follows.

$ java -version
openjdk version "17.0.5" 2022-10-18 LTS
OpenJDK Runtime Environment Zulu17.38+21-CA (build 17.0.5+8-LTS)
OpenJDK 64-Bit Server VM Zulu17.38+21-CA (build 17.0.5+8-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