Install Open JDK 8 on Debian or Ubuntu

In this tutorial you will learn how to install Open JDK 8 on Debian or Ubuntu in easy steps.
1. Check java version if already installed
sudo java -version
2. Update the repositories
sudo apt-get update
3. Install OpenJDK 8
sudo apt-get install openjdk-8-jdk
4. Check Java version to verify the installation
sudo java -version
Output

6 Comments
Thankyou for helping out, wonderful information. Cassandry Ingrim Krenn
Very descriptive article, I liked that a lot. Will there be a part 2? Kayley Derrek Aekerly
It?s hard to discover well-informed individuals on this topic, but you seem like you understand what you?re speaking about! Many thanks Elberta Armin Greenwood
I was very happy to find this website. I need to to thank you for ones time just for this fantastic read!! I definitely enjoyed every part of it and I have you saved to fav to see new things on your website. Gabriela Herculie Florie
Really appreciate you sharing this post. Thanks Again. Keep writing. Arlee Ingrim Willyt
I have been absent for a while, but now I remember why I used to love this web site. Thank you, I will try and check back more frequently. How frequently you update your web site? Gerri Haroun Emery