[Guide] Add PPA support // OpenJDK7
Tofloor
poster avatar
interfacenode
deepin
2016-09-19 13:35
Author
Edited by interfacenode at 2016-9-19 05:43

Overview
I noticed obtaining OpenJDK7 is very challenging under Deepin.


When considering this problem I had the thought to just use Webupd8s PPA since it's always treated me good before.

To enable PPA issue the following into terminal:
  1. sudo apt-get install software-properties-common python-software-properties
Copy the Code
This should only take a few seconds, while you're at it may as well install Synaptic:
  1. sudo apt-get install synaptic
Copy the Code


Great! Now to add a PPA right? We'll use Webupd8s OpenJDK one.
  1. sudo add-apt-repository ppa:webupd8team/java
Copy the Code

Next we will use terminal to open a root session of itself:
  1. sudo terminal
Copy the Code

From Root terminal, issue the following:
  1. dde-file-manager
Copy the Code
Now we have a root shell, note this could be done with sudo dde-file-manager but I thought it would be funny to show a very basic way to show why root terminal is nice as a root launcher..

Anyway, browse to the following in your root File Manager:
  1. /etc/apt/sources.list.d
Copy the Code
Inside you'll see filenames with Yakkety

We want to change them to xenial.

Inside of these files, also change yakkety to xenial; for example openjdk-r-ubuntu-ppa-yakkety.list should be openjdk-r-ubuntu-ppa-xenial.list.
The contents should be similar to:
  1. ubuntu xenial main
Copy the Code

Before using an Ubuntu PPA these changes must occur, in terms of Ubuntu we are compatible with Xenial branch the most.

After these changes issue to terminal:
  1. sudo apt-get update
Copy the Code


And finally, to install our build of choice; in this case openJDK7 issue the following:
  1. sudo apt-get install openjdk-7-jdk
Copy the Code


After check your java version by doing the following in terminal:
  1. java -version
Copy the Code


Now uninstall the current Java8 with the following:

  1. sudo apt-get remove openjdk-8-jdk
Copy the Code

or
  1. sudo apt-get remove oracle-java8*
Copy the Code



Reply Favorite View the author
All Replies
interfacenode
deepin
2016-09-19 13:42
#1
PPA support is really useful, I realize some people may put me on blast for blatantly taking core parts of Ubuntu but all I care about is a better experience and of course productivity.

Come on guys, give the developers OpenJDK7 :< some code requires it
Don't make me go through such messed up stuff!
Reply View the author
New Thread

Popular Ranking

Change

Popular Events

More
国际排名
WHLUG