How to install Java OpenJDK on Ubuntu 16.04

Open Java Development Kit installation in Ubuntu and Linux Mint

Java OpenJDK (short for Open Java Development Kit) is an open-source implementation of the Java platform, widely used for compiling projects as it brings in components for virtual machines, Java Class Library and the Java compiler (javac).

Java OpenJDK is a important prerequisite when compiling custom Android ROMs that are flashed in Android smartphones.

This article describes step-by-step info on how to install Java OpenJDK on Ubuntu 16.04 and above as well as Linux Mint 18.1 and above.

STEP 1: Launch ‘Terminal’.

STEP 2: Copy and paste the following command to add the openJDK official repository source.

sudo add-apt-repository ppa:openjdk-r/ppa  

STEP 3: Update the repository sources.

sudo apt-get update

STEP 4: Finally install Java OpenJDK with this command-line.

sudo apt-get install openjdk-7-jre

That’s it!

Kiran Kumar
Hi there! I'm Kiran Kumar, founder of FOSSLinux.com. I'm an avid Linux lover and enjoy hands-on with new promising distros. Currently, I'm using Ubuntu as a daily driver and run several other distros such as Fedora, Solus, Manjaro, Debian, and some new ones on my test PC and virtual machines. I have a day job as an Engineer, and this website is one of my favorite past time activities especially during Winter ;). When I'm not writing for FOSSLinux, I'm seen biking and hiking on scenic trails. Hope you enjoy using this website as much as I do writing for it. Feedback from readers is something that inspires me to do more, and spread Linux love!. If you find a time, drop me an email or feedback from the 'Contact' page. Or simply leave a comment below if you found this article useful. Have a good day!

LEAVE A REPLY

Please enter your comment!
Please enter your name here

STAY CONNECTED

24,261FansLike
192FollowersFollow

LATEST ARTICLES

Create a ClamAV Antivirus Live USB drive, and how to use it

Antivirus Live CD or USB drives come in handy at times when your computer is infected with a virus and other malware. Here is how you can create a ClamAV Live USB drive to scan and remove the malware from a computer.
best music players for linux
For sure, there will be Linux users out there who cannot live without music. If you're one of those people, you would know how important it is to have a good music player installed on your computer system. In this article, we present to you the 5 Best Music Players for Linux, which will hopefully be able to satisfy each of our readers' needs.
cool and fun linux commands
The real purpose of this article is to help Linux newbies get comfortable and confident with the Linux command-line.  While knowledge and comfort of the Linux GUI allow great power, it is the mastery of the command line, or CLI, affords the Linux user unlimited power and certifies them as a Linux power user well on their way to becoming an expert.
clean virus ubuntu live CD
In this tutorial, we are going to show you how to clean your Windows machine from infected viruses using an Ubuntu live USB or CD and the ClamAV antivirus. The ClamAV is a free, open-source antivirus that can be used on Ubuntu.