I have been trying to install the latest version of java-8. However, I found out that the PPA
ppa:webupd8team/java has been discontinued due to changes in the java licence.
How should I update my java to 8.0_201 or 8.0_211 now?
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.Sign up to join this community
I did search for all PPAs on special launchpad page.
You can add this repository and install Java 8 from it with:
sudo add-apt-repository ppa:ts.sch.gr/ppa sudo apt-get update sudo apt-get install oracle-java8-installer
Either install the Ubuntu Developers package maintainer's version in Ubuntu with
sudo apt install default-jdk (Ubuntu 18.04 and earlier) or
sudo apt install openjdk-13-jdk (Ubuntu 19.04 and later) or follow the below instructions for installing Oracle Java from New Oracle Java 12 Installer For Ubuntu Or Linux Mint (Using Local Oracle Java .tar.gz). Since that tutorial was published the latest Oracle JDK version has been updated from JDK 11 to JDK 12, and I have updated the instructions from the tutorial accordingly.
Create an Oracle account at https://profile.oracle.com/myprofile/account/create-account.jspx and sign in.
Download Oracle JDK 12 .tar.gz archive. Make sure the Oracle JDK version you're downloading is the same as the oracle-java12-installer package version. e.g. the installer is currently version 12.0.2, so it can be used to install Oracle JDK 12.0.2.
/var/cache/oracle-jdk12-installer/ folder, and copy the Oracle JDK 12 .tar.gz to this folder.
For example, create the
/var/cache/oracle-jdk12-installer/ folder and copy jdk-12.0.2_linux-x64_bin.tar.gz to this folder (from the current directory) using:
sudo mkdir -p /var/cache/oracle-jdk12-installer/ sudo cp jdk-12.0.2_linux-x64_bin.tar.gz /var/cache/oracle-jdk12-installer/
Purge the old oracle-java11-installer package if you had it installed:
sudo apt purge oracle-java11-installer
Add the Linux Uprising Java PPA and install the oracle-java12-installer package to set up Oracle Java 12:
sudo add-apt-repository ppa:linuxuprising/java sudo apt update sudo apt install oracle-java12-installer
This is optional. Use the command below to install oracle-java12-set-default, which makes Oracle JDK 12 default:
sudo apt install oracle-java12-set-default