How to install JAVA 8 on Deepin OS 15.5

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.

6 comments

  • 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!

  • gpg fails
    udo apt-key adv –keyserver keyserver.ubuntu.com –recv-keys EEA14886
    Executing: /tmp/apt-key-gpghome.4iVXdyJQdz/gpg.1.sh –keyserver keyserver.ubuntu.com –recv-keys EEA14886
    gpg: WARNING: no command supplied. Trying to guess what you mean …
    usage: gpg [options] [filename]

  • Ao executar:
    ´apt-key adv –keyserver keyserver.ubuntu.com –recv-keys EEA14886´
    Deu o output:
    Executing: /tmp/apt-key-gpghome.3sZivBski8/gpg.1.sh –keyserver keyserver.ubuntu.com –recv-keys EEA14886
    gpg: WARNING: no command supplied. Trying to guess what you mean …
    usage: gpg [options] [filename]

By Tonmoy Ajize

About Author

Tonmoy Ajize

Hey There! I am Tonmoy Ajize from Dhaka, Bangladesh. I am a Linux System Administrator and Customer Success Specialist.