Step by Step Guide to install Java on UbuntuOS

9 steps you should follow to install Java on UbuntuOS

Image for post
Image for post

ava is a programming language originally developed by Sun Microsystems. It is free to download and can be used commercially. In my previous blog, I talked about the steps that you should consider while installing Java on WindowsOS. In that blog, I also talked about Java in general and its benefits over other programming Language. If you use WindowsOS on your computer, then I would recommend you to visit my blog with the link provided below.

In this blog, I will be focusing on the steps of installing Java on UbuntuOS. The process and install commands remain the same for different versions of Ubuntu, or versions of Java.

Step by Step guide for Installing Java in Ubuntu

Step 1: Open terminal

Image for post
Image for post

Step 2: Provide the following command

sudo apt update
Image for post
Image for post

Step 3: Enter your password.

Image for post
Image for post

Step 4: Wait for all your packages to update.

Image for post
Image for post

Step 5: Now, provide the following command

sudo apt install openjdk-14-jre-headless
Image for post
Image for post

Step 6: Enter “y” to install.

Image for post
Image for post

When you follow step 6, your packages will start downloading.

Image for post
Image for post

Step 7: Now, provide the command as shown below.

sudo apt install openjdk-14-jdk-headless
Image for post
Image for post

Step 8: Wait for jdk resources to be download.

Image for post
Image for post

Step 9: After the installation process is completed, check if java has been installed or not by providing the command,

javac -version.
Image for post
Image for post

After you provide the command, it will show your Java version.

Image for post
Image for post

Verdict

Hence, after viewing this blog, you will have Java successfully installed in Ubuntu. Also, in case if you face any issues even after referring to this blog, you can mail your issue to us by sending an email at positive.studs@gmail.com.

Written by

Cloud Computing | Data Science | Mobile Application Development | Artificial Intelligence | Python Programming | Soft Skills | Many more…

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store