$ java -version
java version "1.7.0_79"
OpenJDK Runtime Environment (IcedTea 2.5.6) (7u79-2.5.6-0ubuntu1.14.04.1)
OpenJDK Server VM (build 24.79-b02, mixed mode)
$ javac -version
javac 1.7.0_79
$ sudo add-apt-repository ppa:webupd8team/java
[sudo] password for owner:
 Oracle Java (JDK) Installer (automatically downloads and installs Oracle JDK7 /
 JDK8 / JDK9). There are no actual Java files in this PPA.

More info (and Ubuntu installation instructions):
- for Oracle Java 7: http://www.webupd8.org/2012/01/install-oracle-java-jdk-7-in
-ubuntu-via.html
- for Oracle Java 8: http://www.webupd8.org/2012/09/install-oracle-java-8-in-ubu
ntu-via-ppa.html

Debian installation instructions:
- Oracle Java 7: http://www.webupd8.org/2012/06/how-to-install-oracle-java-7-in-
debian.html
- Oracle Java 8: http://www.webupd8.org/2014/03/how-to-install-oracle-java-8-in-
debian.html

Important!!! For now, you should continue to use Java 8 because Oracle Java 9 is
 available as an early access release (it should be released in 2016)! You shoul
d only use Oracle Java 9 if you explicitly need it, because it may contain bugs
and it might not include the latest security patches! Also, some Java options we
re removed in JDK9, so you may encounter issues with various Java apps. More inf
ormation and installation instructions (Ubuntu / Linux Mint / Debian): http://ww
w.webupd8.org/2015/02/install-oracle-java-9-in-ubuntu-linux.html
 More info: https://launchpad.net/~webupd8team/+archive/ubuntu/java
Press [ENTER] to continue, or Ctrl-C to cancel adding it

gpg: keyring `/tmp/tmpgs7339a9/secring.gpg' created
gpg: keyring `/tmp/tmpgs7339a9/pubring.gpg' created
gpg: requesting key EEA14886 from hkp server keyserver.ubuntu.com
gpg: /tmp/tmpgs7339a9/trustdb.gpg: trustdb created
gpg: key EEA14886: public key "Launchpad VLC" imported
gpg: Total number processed: 1
gpg:               imported: 1  (RSA: 1)
OK
$ sudo apt-get update
Ign http://ppa.launchpad.net trusty InRelease
Ign http://archive.ubuntu.com trusty InRelease
Ign http://security.ubuntu.com trusty-security InRelease
Ign http://ppa.launchpad.net trusty InRelease
Ign http://archive.ubuntu.com trusty-updates InRelease
Get:1 http://security.ubuntu.com trusty-security Release.gpg [933 B]
Ign http://ppa.launchpad.net trusty InRelease
Hit http://archive.ubuntu.com trusty Release.gpg
Get:2 http://security.ubuntu.com trusty-security Release [63.5 kB]
Hit http://ppa.launchpad.net trusty Release.gpg
Get:3 http://archive.ubuntu.com trusty-updates Release.gpg [933 B]
Hit http://ppa.launchpad.net trusty Release.gpg
Hit http://archive.ubuntu.com trusty Release
Get:4 http://ppa.launchpad.net trusty Release.gpg [316 B]
Get:5 http://archive.ubuntu.com trusty-updates Release [63.5 kB]
Hit http://ppa.launchpad.net trusty Release
Hit http://ppa.launchpad.net trusty Release
Get:6 http://security.ubuntu.com trusty-security/universe i386 Packages [113 kB
]
Get:7 http://ppa.launchpad.net trusty Release [15.1 kB]
Hit http://archive.ubuntu.com trusty/main i386 Packages
Hit http://ppa.launchpad.net trusty/main i386 Packages
Hit http://archive.ubuntu.com trusty/universe i386 Packages
Hit http://ppa.launchpad.net trusty/main Translation-en
Get:8 http://security.ubuntu.com trusty-security/main i386 Packages [312 kB]
Hit http://archive.ubuntu.com trusty/restricted i386 Packages
Hit http://ppa.launchpad.net trusty/main i386 Packages
Hit http://archive.ubuntu.com trusty/multiverse i386 Packages
Hit http://archive.ubuntu.com trusty/main Translation-zh_HK
Hit http://archive.ubuntu.com trusty/main Translation-en
Get:9 http://ppa.launchpad.net trusty/main i386 Packages [3,387 B]
Hit http://archive.ubuntu.com trusty/main Translation-zh_TW
Get:10 http://ppa.launchpad.net trusty/main Translation-en [1,556 B]
Get:11 http://security.ubuntu.com trusty-security/multiverse i386 Packages [3,83
0 B]
Get:12 http://security.ubuntu.com trusty-security/restricted i386 Packages [8,84
6 B]
Hit http://archive.ubuntu.com trusty/multiverse Translation-en
Hit http://security.ubuntu.com trusty-security/main Translation-en
Hit http://archive.ubuntu.com trusty/multiverse Translation-zh_TW
Hit http://security.ubuntu.com trusty-security/multiverse Translation-en
Hit http://archive.ubuntu.com trusty/restricted Translation-zh_HK
Hit http://security.ubuntu.com trusty-security/restricted Translation-en
Hit http://security.ubuntu.com trusty-security/universe Translation-en
Hit http://archive.ubuntu.com trusty/restricted Translation-en
Hit http://archive.ubuntu.com trusty/restricted Translation-zh_TW
Hit http://archive.ubuntu.com trusty/universe Translation-en
Hit http://archive.ubuntu.com trusty/universe Translation-zh_TW
Ign http://ppa.launchpad.net trusty/main Translation-zh_HK
Get:13 http://archive.ubuntu.com trusty-updates/universe i386 Packages [304 kB]
Ign http://ppa.launchpad.net trusty/main Translation-zh
Ign http://ppa.launchpad.net trusty/main Translation-en
Ign http://ppa.launchpad.net trusty/main Translation-zh_TW
Get:14 http://archive.ubuntu.com trusty-updates/main i386 Packages [579 kB]
Get:15 http://archive.ubuntu.com trusty-updates/multiverse i386 Packages [12.1 k
B]
Get:16 http://archive.ubuntu.com trusty-updates/restricted i386 Packages [15.2 k
B]
Hit http://archive.ubuntu.com trusty-updates/main Translation-en
Hit http://archive.ubuntu.com trusty-updates/multiverse Translation-en
Hit http://archive.ubuntu.com trusty-updates/restricted Translation-en
Hit http://archive.ubuntu.com trusty-updates/universe Translation-en
Ign http://archive.ubuntu.com trusty/main Translation-zh
Ign http://archive.ubuntu.com trusty/multiverse Translation-zh_HK
Ign http://archive.ubuntu.com trusty/multiverse Translation-zh
Ign http://archive.ubuntu.com trusty/restricted Translation-zh
Ign http://archive.ubuntu.com trusty/universe Translation-zh_HK
Ign http://archive.ubuntu.com trusty/universe Translation-zh
Fetched 1,496 kB in 22s (67.9 kB/s)
Reading package lists... Done
$ sudo apt-get install oracle-java8-installer
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  gsfonts-x11
Suggested packages:
  visualvm ttf-kochi-gothic ttf-sazanami-gothic ttf-kochi-mincho
  ttf-sazanami-mincho ttf-arphic-uming
The following NEW packages will be installed:
  gsfonts-x11 oracle-java8-installer
0 upgraded, 2 newly installed, 0 to remove and 4 not upgraded.
Need to get 31.3 kB of archives.
After this operation, 248 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://archive.ubuntu.com/ubuntu/ trusty/main gsfonts-x11 all 0.22 [9,108
B]
Get:2 http://ppa.launchpad.net/webupd8team/java/ubuntu/ trusty/main oracle-java8
-installer all 8u51+8u51arm-1~webupd8~0 [22.2 kB]
Fetched 31.3 kB in 0s (43.4 kB/s)
Preconfiguring packages ...
Selecting previously unselected package oracle-java8-installer.
(Reading database ... 351411 files and directories currently installed.)
Preparing to unpack .../oracle-java8-installer_8u51+8u51arm-1~webupd8~0_all.deb ...
Unpacking oracle-java8-installer (8u51+8u51arm-1~webupd8~0) ...
Selecting previously unselected package gsfonts-x11.
Preparing to unpack .../gsfonts-x11_0.22_all.deb ...
Unpacking gsfonts-x11 (0.22) ...
Processing triggers for shared-mime-info (1.2-0ubuntu3) ...
Unknown media type in type 'chemical/x-alchemy'
Unknown media type in type 'chemical/x-cache'
Unknown media type in type 'chemical/x-cactvs-ascii'
Unknown media type in type 'chemical/x-cactvs-binary'
Unknown media type in type 'chemical/x-cactvs-table'
Unknown media type in type 'chemical/x-cdx'
Unknown media type in type 'chemical/x-cdxml'
Unknown media type in type 'chemical/x-chem3d'
Unknown media type in type 'chemical/x-cif'
Unknown media type in type 'chemical/x-cml'
Unknown media type in type 'chemical/x-daylight-smiles'
Unknown media type in type 'chemical/x-dmol'
Unknown media type in type 'chemical/x-gamess-input'
Unknown media type in type 'chemical/x-gamess-output'
Unknown media type in type 'chemical/x-gaussian-input'
Unknown media type in type 'chemical/x-gaussian-log'
Unknown media type in type 'chemical/x-genbank'
Unknown media type in type 'chemical/x-gulp'
Unknown media type in type 'chemical/x-hin'
Unknown media type in type 'chemical/x-inchi'
Unknown media type in type 'chemical/x-inchi-xml'
Unknown media type in type 'chemical/x-jcamp-dx'
Unknown media type in type 'chemical/x-macromodel-input'
Unknown media type in type 'chemical/x-mdl-molfile'
Unknown media type in type 'chemical/x-mdl-rdfile'
Unknown media type in type 'chemical/x-mdl-rxnfile'
Unknown media type in type 'chemical/x-mdl-sdfile'
Unknown media type in type 'chemical/x-mdl-tgf'
Unknown media type in type 'chemical/x-mmcif'
Unknown media type in type 'chemical/x-mol2'
Unknown media type in type 'chemical/x-mopac-graph'
Unknown media type in type 'chemical/x-mopac-input'
Unknown media type in type 'chemical/x-mopac-out'
Unknown media type in type 'chemical/x-msi-car'
Unknown media type in type 'chemical/x-msi-hessian'
Unknown media type in type 'chemical/x-msi-mdf'
Unknown media type in type 'chemical/x-msi-msi'
Unknown media type in type 'chemical/x-ncbi-asn1'
Unknown media type in type 'chemical/x-ncbi-asn1-binary'
Unknown media type in type 'chemical/x-ncbi-asn1-xml'
Unknown media type in type 'chemical/x-pdb'
Unknown media type in type 'chemical/x-shelx'
Unknown media type in type 'chemical/x-vmd'
Unknown media type in type 'chemical/x-xyz'
Processing triggers for mime-support (3.54ubuntu1.1) ...
Processing triggers for bamfdaemon (0.5.1+14.04.20140409-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for desktop-file-utils (0.22-1ubuntu1) ...
Processing triggers for gnome-menus (3.10.1-0ubuntu2) ...
Processing triggers for fontconfig (2.11.0-0ubuntu4.1) ...
Setting up oracle-java8-installer (8u51+8u51arm-1~webupd8~0) ...
Downloading Oracle Java 8...
--2015-08-12 23:39:24--  http://download.oracle.com/otn-pub/java/jdk/8u51-b16/jd
k-8u51-linux-i586.tar.gz
Resolving download.oracle.com (download.oracle.com)... 203.186.47.187, 203.186.4
7.240
Connecting to download.oracle.com (download.oracle.com)|203.186.47.187|:80... co
nnected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: https://edelivery.oracle.com/otn-pub/java/jdk/8u51-b16/jdk-8u51-linux-
i586.tar.gz [following]
--2015-08-12 23:39:24--  https://edelivery.oracle.com/otn-pub/java/jdk/8u51-b16/
jdk-8u51-linux-i586.tar.gz
Resolving edelivery.oracle.com (edelivery.oracle.com)... 173.223.91.148
Connecting to edelivery.oracle.com (edelivery.oracle.com)|173.223.91.148|:443...
 connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: http://download.oracle.com/otn-pub/java/jdk/8u51-b16/jdk-8u51-linux-i5
86.tar.gz?AuthParam=1439394084_e17a4cdd402a5347c0c3fa6aab09e2d2 [following]
--2015-08-12 23:39:24--  http://download.oracle.com/otn-pub/java/jdk/8u51-b16/jd
k-8u51-linux-i586.tar.gz?AuthParam=1439394084_e17a4cdd402a5347c0c3fa6aab09e2d2
Connecting to download.oracle.com (download.oracle.com)|203.186.47.187|:80... co
nnected.
HTTP request sent, awaiting response... 200 OK
Length: 175056840 (167M) [application/x-gzip]
Saving to: 'jdk-8u51-linux-i586.tar.gz'

     0K ........ ........ ........ ........ ........ ........  1% 14.8M 11s
  3072K ........ ........ ........ ........ ........ ........  3% 15.0M 11s
  6144K ........ ........ ........ ........ ........ ........  5% 13.7M 11s
  9216K ........ ........ ........ ........ ........ ........  7% 15.2M 11s
 12288K ........ ........ ........ ........ ........ ........  8% 17.1M 10s
 15360K ........ ........ ........ ........ ........ ........ 10% 17.3M 10s
 18432K ........ ........ ........ ........ ........ ........ 12% 15.8M 9s
 21504K ........ ........ ........ ........ ........ ........ 14% 15.5M 9s
 24576K ........ ........ ........ ........ ........ ........ 16% 14.6M 9s
 27648K ........ ........ ........ ........ ........ ........ 17% 14.4M 9s
 30720K ........ ........ ........ ........ ........ ........ 19% 14.2M 9s
 33792K ........ ........ ........ ........ ........ ........ 21% 14.9M 9s
 36864K ........ ........ ........ ........ ........ ........ 23% 13.7M 9s
 39936K ........ ........ ........ ........ ........ ........ 25% 16.1M 8s
 43008K ........ ........ ........ ........ ........ ........ 26% 13.9M 8s
 46080K ........ ........ ........ ........ ........ ........ 28% 13.5M 8s
 49152K ........ ........ ........ ........ ........ ........ 30% 12.9M 8s
 52224K ........ ........ ........ ........ ........ ........ 32% 15.5M 8s
 55296K ........ ........ ........ ........ ........ ........ 34% 13.1M 7s
 58368K ........ ........ ........ ........ ........ ........ 35% 14.3M 7s
 61440K ........ ........ ........ ........ ........ ........ 37% 16.0M 7s
 64512K ........ ........ ........ ........ ........ ........ 39% 14.6M 7s
 67584K ........ ........ ........ ........ ........ ........ 41% 10.1M 7s
 70656K ........ ........ ........ ........ ........ ........ 43% 5.70M 7s
 73728K ........ ........ ........ ........ ........ ........ 44% 2.55M 8s
 76800K ........ ........ ........ ........ ........ ........ 46% 14.3M 8s
 79872K ........ ........ ........ ........ ........ ........ 48% 14.5M 7s
 82944K ........ ........ ........ ........ ........ ........ 50% 15.5M 7s
 86016K ........ ........ ........ ........ ........ ........ 52% 16.3M 7s
 89088K ........ ........ ........ ........ ........ ........ 53% 14.2M 6s
 92160K ........ ........ ........ ........ ........ ........ 55% 13.5M 6s
 95232K ........ ........ ........ ........ ........ ........ 57% 15.6M 6s
 98304K ........ ........ ........ ........ ........ ........ 59% 13.4M 6s
101376K ........ ........ ........ ........ ........ ........ 61% 17.5M 5s
104448K ........ ........ ........ ........ ........ ........ 62% 14.9M 5s
107520K ........ ........ ........ ........ ........ ........ 64% 13.7M 5s
110592K ........ ........ ........ ........ ........ ........ 66% 16.1M 4s
113664K ........ ........ ........ ........ ........ ........ 68% 14.9M 4s
116736K ........ ........ ........ ........ ........ ........ 70% 14.6M 4s
119808K ........ ........ ........ ........ ........ ........ 71% 14.4M 4s
122880K ........ ........ ........ ........ ........ ........ 73% 13.6M 3s
125952K ........ ........ ........ ........ ........ ........ 75% 14.7M 3s
129024K ........ ........ ........ ........ ........ ........ 77% 14.3M 3s
132096K ........ ........ ........ ........ ........ ........ 79% 15.2M 3s
135168K ........ ........ ........ ........ ........ ........ 80% 12.5M 3s
138240K ........ ........ ........ ........ ........ ........ 82% 14.3M 2s
141312K ........ ........ ........ ........ ........ ........ 84% 15.0M 2s
144384K ........ ........ ........ ........ ........ ........ 86% 14.8M 2s
147456K ........ ........ ........ ........ ........ ........ 88% 15.3M 2s
150528K ........ ........ ........ ........ ........ ........ 89% 13.9M 1s
153600K ........ ........ ........ ........ ........ ........ 91% 15.2M 1s
156672K ........ ........ ........ ........ ........ ........ 93% 19.9M 1s
159744K ........ ........ ........ ........ ........ ........ 95% 14.2M 1s
162816K ........ ........ ........ ........ ........ ........ 97% 16.4M 0s
165888K ........ ........ ........ ........ ........ ........ 98% 13.8M 0s
168960K ........ ........ ........ .......                   100% 15.2M=13s

2015-08-12 23:39:37 (13.1 MB/s) - 'jdk-8u51-linux-i586.tar.gz' saved [175056840/
175056840]

Download done.
Removing outdated cached downloads...
update-alternatives: using /usr/lib/jvm/java-8-oracle/jre/bin/ControlPanel to pr
ovide /usr/bin/ControlPanel (ControlPanel) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/jre/bin/javaws to provide 
/usr/bin/javaws (javaws) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/jre/bin/jcontrol to provid
e /usr/bin/jcontrol (jcontrol) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/jre/bin/jjs to provide /us
r/bin/jjs (jjs) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/jre/bin/keytool to provide
 /usr/bin/keytool (keytool) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/jre/bin/orbd to provide /u
sr/bin/orbd (orbd) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/jre/bin/pack200 to provide
 /usr/bin/pack200 (pack200) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/jre/bin/policytool to prov
ide /usr/bin/policytool (policytool) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/jre/bin/rmid to provide /u
sr/bin/rmid (rmid) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/jre/bin/rmiregistry to pro
vide /usr/bin/rmiregistry (rmiregistry) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/jre/bin/servertool to prov
ide /usr/bin/servertool (servertool) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/jre/bin/tnameserv to provi
de /usr/bin/tnameserv (tnameserv) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/jre/bin/unpack200 to provi
de /usr/bin/unpack200 (unpack200) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/jre/lib/jexec to provide /
usr/bin/jexec (jexec) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/appletviewer to provid
e /usr/bin/appletviewer (appletviewer) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/extcheck to provide /u
sr/bin/extcheck (extcheck) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/idlj to provide /usr/b
in/idlj (idlj) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/jar to provide /usr/bi
n/jar (jar) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/jarsigner to provide /
usr/bin/jarsigner (jarsigner) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/javadoc to provide /us
r/bin/javadoc (javadoc) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/javafxpackager to prov
ide /usr/bin/javafxpackager (javafxpackager) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/javah to provide /usr/
bin/javah (javah) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/javap to provide /usr/
bin/javap (javap) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/javapackager to provid
e /usr/bin/javapackager (javapackager) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/jcmd to provide /usr/b
in/jcmd (jcmd) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/jconsole to provide /u
sr/bin/jconsole (jconsole) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/jdb to provide /usr/bi
n/jdb (jdb) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/jdeps to provide /usr/
bin/jdeps (jdeps) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/jhat to provide /usr/b
in/jhat (jhat) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/jinfo to provide /usr/
bin/jinfo (jinfo) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/jmap to provide /usr/b
in/jmap (jmap) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/jmc to provide /usr/bi
n/jmc (jmc) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/jps to provide /usr/bi
n/jps (jps) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/jrunscript to provide 
/usr/bin/jrunscript (jrunscript) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/jsadebugd to provide /
usr/bin/jsadebugd (jsadebugd) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/jstack to provide /usr
/bin/jstack (jstack) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/jstat to provide /usr/
bin/jstat (jstat) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/jstatd to provide /usr
/bin/jstatd (jstatd) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/jvisualvm to provide /
usr/bin/jvisualvm (jvisualvm) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/native2ascii to provid
e
 /usr/bin/native2ascii (native2ascii) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/rmic to provide /usr/b
in/rmic (rmic) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/schemagen to provide /
usr/bin/schemagen (schemagen) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/serialver to provide /
usr/bin/serialver (serialver) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/wsgen to provide /usr/
bin/wsgen (wsgen) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/wsimport to provide /u
sr/bin/wsimport (wsimport) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/xjc to provide /usr/bi
n/xjc (xjc) in auto mode
update-binfmts: warning: current package is oracle-java8, but binary format alre
a
dy installed by openjdk-6
Oracle JDK 8 installed
update-alternatives: using /usr/lib/jvm/java-8-oracle/jre/lib/i386/libnpjp2.so t
o provide /usr/lib/mozilla/plugins/libjavaplugin.so (mozilla-javaplugin.so) in a
uto mode
Oracle JRE 8 browser plugin installed
Setting up gsfonts-x11 (0.22) ...
$ java -version
java version "1.7.0_79"
OpenJDK Runtime Environment (IcedTea 2.5.6) (7u79-2.5.6-0ubuntu1.14.04.1)
OpenJDK Server VM (build 24.79-b02, mixed mode)
$ jdb -version
This is jdb version 1.8 (Java SE version 1.8.0_51)
$ sudo apt-get install oracle-java8-set-default
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  oracle-java8-set-default
0 upgraded, 1 newly installed, 0 to remove and 4 not upgraded.
Need to get 4,698 B of archives.
After this operation, 37.9 kB of additional disk space will be used.
Get:1 http://ppa.launchpad.net/webupd8team/java/ubuntu/ trusty/main oracle-java8
-set-default all 8u51+8u51arm-1~webupd8~0 [4,698 B]
Fetched 4,698 B in 0s (9,956 B/s)
Selecting previously unselected package oracle-java8-set-default.
(Reading database ... 351476 files and directories currently installed.)
Preparing to unpack .../oracle-java8-set-default_8u51+8u51arm-1~webupd8~0_all.de
b ...
Unpacking oracle-java8-set-default (8u51+8u51arm-1~webupd8~0) ...
Setting up oracle-java8-set-default (8u51+8u51arm-1~webupd8~0) ...
$ java -version
java version "1.8.0_51"
Java(TM) SE Runtime Environment (build 1.8.0_51-b16)
Java HotSpot(TM) Server VM (build 25.51-b03, mixed mode)
$ javac -version
javac 1.8.0_51
$ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
  apparmor dh-apparmor libapparmor-perl libapparmor1
4 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 390 kB of archives.
After this operation, 1,024 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://archive.ubuntu.com/ubuntu/ trusty-updates/main libapparmor1 i386 2.
8.95~2430-0ubuntu5.3 [24.9 kB]
Get:2 http://archive.ubuntu.com/ubuntu/ trusty-updates/main libapparmor-perl i38
6 2.8.95~2430-0ubuntu5.3 [24.4 kB]
Get:3 http://archive.ubuntu.com/ubuntu/ trusty-updates/main apparmor i386 2.8.95
~2430-0ubuntu5.3 [329 kB]
Get:4 http://archive.ubuntu.com/ubuntu/ trusty-updates/main dh-apparmor all 2.8.
95~2430-0ubuntu5.3 [12.2 kB]
Fetched 390 kB in 2s (185 kB/s)
Preconfiguring packages ...
(Reading database ... 351481 files and directories currently installed.)
Preparing to unpack .../libapparmor1_2.8.95~2430-0ubuntu5.3_i386.deb ...
Unpacking libapparmor1:i386 (2.8.95~2430-0ubuntu5.3) over (2.8.95~2430-0ubuntu5.
2) ...
Preparing to unpack .../libapparmor-perl_2.8.95~2430-0ubuntu5.3_i386.deb ...
Unpacking libapparmor-perl (2.8.95~2430-0ubuntu5.3) over (2.8.95~2430-0ubuntu5.2
) ...
Preparing to unpack .../apparmor_2.8.95~2430-0ubuntu5.3_i386.deb ...
Unpacking apparmor (2.8.95~2430-0ubuntu5.3) over (2.8.95~2430-0ubuntu5.2) ...
Preparing to unpack .../dh-apparmor_2.8.95~2430-0ubuntu5.3_all.deb ...
Unpacking dh-apparmor (2.8.95~2430-0ubuntu5.3) over (2.8.95~2430-0ubuntu5.2) ...

Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Processing triggers for ureadahead (0.100.0-16) ...
ureadahead will be reprofiled on next reboot
Setting up libapparmor1:i386 (2.8.95~2430-0ubuntu5.3) ...
Setting up libapparmor-perl (2.8.95~2430-0ubuntu5.3) ...
Setting up apparmor (2.8.95~2430-0ubuntu5.3) ...
 * Starting AppArmor profiles
Skipping profile in /etc/apparmor.d/disable: usr.bin.firefox
Skipping profile in /etc/apparmor.d/disable: usr.sbin.rsyslogd
                                                                         [ OK ]
 * Reloading AppArmor profiles
Skipping profile in /etc/apparmor.d/disable: usr.bin.firefox
Skipping profile in /etc/apparmor.d/disable: usr.sbin.rsyslogd
                                                                         [ OK ]
Setting up dh-apparmor (2.8.95~2430-0ubuntu5.3) ...
Processing triggers for libc-bin (2.19-0ubuntu6.6) ...