Updating to JDK 1.8 or 1.9 on Ubuntu

20102017

Trying to install OpenDaylight Nitrogen needs JDK 1.8 or later.

Needless to say, I’ve not go the right version on my Ubuntu 16.04 server – it reports 1.7. Also needless to say, installing it isn’t a simple matter of adding the software through apt-get because the repository appears to be broken or empty (at the time of writing). I was hoping to get away with doing this:

14 days later, now that my frustration has died down I decided to have another go. This time, following this process, I can download the Java 8 installer. However the package that sets Java 8 as default fails to install – again with a 404 not found, so it looks like Oracle have moved it: