This guide will introduce how to install Oracle JDK 8 on your Deepin Linux.
1. update the System.
Make sure your System is up-to-date.
$ sudo apt-get update && sudo apt-get upgrade
2. Install Software Common Properties Package.
By default, deepin does not include Software Common Properties package. So you have to install it first. This allows you to manage your distribution and independent software vendor software sources easily. Enter the following command to install it.
$ sudo apt-get install software-properties-common
3. Add webup8team Java PPA Repository in your System.
Enter following command and click hit Enter add PPA repository.
$ sudo add-apt-repository ppa:webupd8team/java
4. Import GPG Key
Now you have import GPG Key on your System for verifying packages before installing.
$ sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys EEA14886
5. Install Oracle JDK 8
Update your System and Install JDK 8
$ sudo apt-get update && sudo apt-get install oracle-java8-installer
6. Verify Java Version
Check whether Java has successfully installed.
$ java -v
So you have installed Oracle JDK 8 Successfully…