OpenJDK 8 – How to Install OpenJDK 8 on Ubuntu 19.04

19.04jdkopenjdk

Only openjdk-11-jdk and newer seem to be available. Is there any way to install the OpenJDK 8? Preferably without adding a PPA.

Best Answer

As of now, 30 April 2019 02:00 UTC, Open JDK 8 and its associated packages have been added back to the normal Ubuntu 19.04 Disco Dingo repositories.

So you can now do the usual

sudo apt install openjdk-8-jdk

without adding any PPAs or downloading .deb packages.


As an aside, I believe the package was removed from 19.04 (while originally being there) because it was (erroneously?) removed from Debian testing (related bug report) and then cleaned up downstream. It has been re-added today by its maintainer Matthias Klose aka doko.