

To automatically set up the Java 8 environment variables sudo apt-get install oracle-java8-set-default Sudo apt-get install oracle-java8-installer sudo add-apt-repository ppa:webupd8team/java -y Hence the below method no longer works and exists because of historical reasons. More information can be found on PPA's page on Launchpad.

Thus this PPA doesn't have any Java files. Note: WebUpd8 team's PPA has been discontinued with effective from April 16, 2019. I recommend you to use Webup8 Oracle Java8 Installer If you really want to use OpenJDK, you have to compile from source. OpenJDK 8 backport for trusty ppa:jochenkemnade/openjdk-8 OpenJDK builds (all archs) ppa:openjdk-r/ppa I found two repository but I do not recommend

Editors note: This answer is outdated as the PPA’s listed are not available anymore.
