
Java 8 stable version was released on March 18, 2014 and publicly available for download. This article is going to help you to install Java 8 on Deepin OS. We are going to do it using Webupd8 PPA which works for Debian based systems.
Prerequisites
- sudo / root user
Step 1 – Add Java 8 PPA
First, you need to install dir manager which is required for adding any PPA
apt-get install dirmngr
Now, create a new PPA file to add webupd8team Java PPA repository in your system
vim /etc/apt/sources.list.d/java-8-deepin.list
and add the below contents in it
deb http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main
Now import GPG Key on your system for verifying packages before installing.
apt-key adv –keyserver keyserver.ubuntu.com –recv-keys EEA14886
Step 2 – Install Java 8 on Deepin OS
apt-get update; apt-get install oracle-java8-installer
Step 3 – Verify Installed Java Version
java -version
Picked up _JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=gasp java version "1.8.0_151" Java(TM) SE Runtime Environment (build 1.8.0_151-b12) Java HotSpot(TM) 64-Bit Server VM (build 25.151-b12, mixed mode)
Such output confirms that JAVA 8 has been successfully installed on your system.
References: https://launchpad.net/~webupd8team/+archive/ubuntu/java
Thanks for reading this article.
worked for me … thanks
What to change for Java 9?
I am very very happy thanks very much! I loked already how to install java jdk on deepin using other methods but i found problemes.This one worked nicely! Thank you very much!
Thanks, i’m new in this distro of linux, but this work for me. God bless you and all.