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,715FansLike
164FollowersFollow

LATEST ARTICLES