Contents
How to Install JAVA 8 (JDK & JRE) on Debian, Ubuntu and Linux Mint Via PPA
1- Introduction:
Oracle Java 8 is now stable. Below you’ll find instructions on how to install it in Ubuntu / Linux Mint via a PPA repository. Tha PPA supports JDK 8 for both 32bit and 64bit
In this article I show you how to install Oracle JAVA 8 (JDK/JRE) on Debian, Ubuntu and Linux Mint systems using PPA.
2- Installing Java 8 on Ubuntu:
first of all, make sure that Java is not already installed in your system using this command:
1 |
java -version |
First you need to add Java PPA repository in your system and install Oracle Java 8 using following commands:
1 2 3 |
sudo add-apt-repository ppa:webupd8team/java sudo apt-get update sudo apt-get install oracle-java8-installer |
3- Setting Java environment variables:
To automatically set up the Java 8 environment variables, you can install the following package:
1 |
sudo apt-get install oracle-java8-set-default |
4. Conclusion
In this post, i have explained How to Install JAVA 8 (JDK & JRE) on Debian, Ubuntu and Linux Mint Via PPA
If you have any questions or feedback, feel free to leave a comment.
As always, if you found this post useful, then click like and share it 🙂