How to Install Java on Ubuntu 18.04 ? Print

  • 0

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

Was this answer helpful?

« Back
Sign up for a newsletter