How to Install Java on Ubuntu 22.04

Spread the love

Install JRE

sudo apt update
java -version

Java version-before Jre installation

sudo apt install default-jre
java -version

Java-version-after-jre-installation

Install JDK

sudo apt install default-jdk

sudo apt install default-jdk

javac -version

javac -version to check jdk version

 

Leave a Comment

Your email address will not be published.

Disclosure: This website is supports by its reader. This means, if you buy any product / service through link on this website, we may earn a small commision withought costing you extra. Learn how you can support Us and why we need this?