Using Ubuntu
The instruction was tested on Ubuntu distributions 18.04, 20.04, 22.04
apt-get -y updateWait a while, this process may take 1-2 minutes. When finished, a prompt appears to enter commands on behalf of the user.

Use universal command to install OpenJDK 8
Waiting for all files to be downloaded and installed.

Wait a while, this process may take 1-2 minutes. When finished, a prompt appears to enter commands on behalf of the user.

Use universal command to install OpenJDK 11
Waiting for all files to be downloaded and installed.

Wait a while, this process may take 1-2 minutes. When finished, a prompt appears to enter commands on behalf of the user.

Use universal command to install OpenJDK 17
Waiting for all files to be downloaded and installed.


Debian usage
Tutorial tested on Debian distributions
We’re adding a repository.
Installing OpenJDK 8.
Wait a while, this process may take 1-2 minutes. When finished, a prompt appears to enter commands on behalf of the user.

Use universal command to install OpenJDK 11
Waiting for all files to be downloaded and installed.

Wait a while, this process may take 1-2 minutes. When finished, a prompt appears to enter commands on behalf of the user.

Use universal command to install OpenJDK 17
Waiting for all files to be downloaded and installed.


Last updated