I am aware of how to install Java 8 in Ubuntu 18.04. The issue is that, now I want to upgrade to say Ubuntu 19.04, but Ubuntu is not letting me do it unless I update openjdk as well.
$ sudo apt list --upgradable Listing... Done code/stable 1.36.1-1562627527 amd64 [upgradable from: 1.36.0-1562161087] libopenjfx-java/bionic-updates,bionic-updates,bionic-security,bionic-security 11.0.2+1-1~18.04.2 all [upgradable from: 8u161-b12-1ubuntu2] libopenjfx-jni/bionic-updates,bionic-security 11.0.2+1-1~18.04.2 amd64 [upgradable from: 8u161-b12-1ubuntu2] openjfx/bionic-updates,bionic-security 11.0.2+1-1~18.04.2 amd64 [upgradable from: 8u161-b12-1ubuntu2] $ sudo do-release-upgrade Checking for a new Ubuntu release Please install all available updates for your release before upgrading.
What is the recommended way to install Java 8 in Ubuntu that doesn't interfere with Ubuntu upgrade. For example I would like to use software development tools in my latest Ubuntu. But could I keep a separate docker or VM that has Java 8. I am hoping to have less performance penalty while having the benefit that I could use all other tools and data (not present in that docker image or VM).