How to Install Java on Ubuntu?

How to install Java using apt-get command on Ubuntu Operating System?

Posted by Amritpal Singh on January 26, 2018

Java is one of the most important programming languages which is supported on so many types of operating systems. This tutorial informs you how to install Java on Ubuntu Operating System.

1. First, update the package index

sudo apt-get update

2. Now use the following command to install the Java Runtime Environment (JRE)

sudo apt-get install default-jre

Now you should have java installed on your system. You can check the version of Java using the following command.

java -version

Please give your feedback.


Add Comment