Home » How to Install java on linux

How to Install java on linux

Let’s start the discussion about How to java on linux in following methods.


Steps to install java on linux :

install default JDK :

sudo apt install default-jdk

Install JRE

sudo apt install default-jre

Then install JDK by running below commands.

sudo apt install openjdk-17-jdk
sudo apt install openjdk-17-jre

I hope the strategies listed above work for you. Happy coding and come back again.

Similar Post : How to restart postgres on ubuntu