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.
While PPA is the preferred method to install JDK 8 in order to get timely updates and fixes, but if you still want to install without PPA, you can download and install JDK 8 from Ubuntu's pool of Universe packages.
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
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.
While PPA is the preferred method to install JDK 8 in order to get timely updates and fixes, but if you still want to install without PPA, you can download and install JDK 8 from Ubuntu's pool of Universe packages.
Download JDK and JRE:
Install using dpkg:
Install dependencies:
If you want to install using PPA, add openjdk-r ppa and install:
Kulfy's answer is working for me. However, I had to make some changes in order to make it work on Ubuntu 19.04.
Download JRE and JDK:
Try to install using
dpkg
(\
didn't work for me, just use spaces):If you have missing dependencies, and error will be shown. Install the dependencies:
After installing the dependencies, try to install again (Go to step 2).
4. Close(update) 5. Restart Enjoy :)
On Launchpad OpenJDK builds (all archs) has ALL the versions of java JRE/JDK (OpenJDK