How to Install Java on Ubuntu 18.04 ?

Java is a programming language developed by Sun Microsystems. There are lots of applications and websites which require java to run. We will show you how to install Java on Ubuntu 18.04 in this article. Please refer to the below steps to install Java on ubuntu 18.04

  1. SSH to your server with root user.

  2. Update your system using the apt-get update command. 

    apt-get update -y
  3. Now execute the following command which will install the Java runtime environment which will install JRE from open JDK 11.

    sudo apt install default-jre	
  4. Once the installation is completed you can verify it by using the following command. It will show the output as shown in the below image if the installation was successful.

    java -version	
    Java installed

  • 0 Users Found This Useful

Was this answer helpful?

Related Articles

How to Manage Linux Cloud VPS From Client Area?

This article will assist you to manage your Linux Cloud VPS from client area (though you will...

How to place Classic VPS order?

This is a video tutorial about selecting an appropriate configuration for your Classic VPS order....

How to use chmod to change file permission?

In this article, we will describe how to use the chmod command to modify file permission in Linux...

How to Install and Configure Fail2ban on Ubuntu?

You require to protect your server from a Brute force attack from the internet. You can do it...

How to install MongoDB version 4.0 on Centos 7?

MongoDB is an open-source and free Database service. It is a NoSQL Database and it is different...