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

Related Articles

How to Install and configure Dovecot on CentOS?

Dovecot is used to receive incoming emails on your server from Postfix. Dovecot is an open-source...

Do You Provide TUN/TAP On VPS Hosting?

Typically, TUN/TAP is used when you want to utilize VPN services from your VPS. Windows VPS...

How to fix - Apache Error: No matching DirectoryIndex?

You may face the below error while accessing applications that have index files other than...

How to enable two factor authentication in cPanel?

Please refer to the following steps to enable two-factor authentication in cPanel. Login to...

How to install Apache on Ubuntu?

Apache is one of the popular web servers. It has many strong features, including dynamic modules,...

  • 0 Users Found This Useful

Was this answer helpful?