7

I would like to use newest Java (15) and I can't find it in ubuntu bionic repositories. Is there a ppa where I could get it?

karel
  • 122,292
  • 133
  • 301
  • 332

2 Answers2

4

Yes, you can get Java 15 from AdoptOpenJDK PPA.

wget -qO - https://adoptopenjdk.jfrog.io/adoptopenjdk/api/gpg/key/public | sudo apt-key add -
sudo add-apt-repository --yes https://adoptopenjdk.jfrog.io/adoptopenjdk/deb/

Then you can install Java 15 with:

sudo apt-get install adoptopenjdk-15-hotspot

For more information / options / troubleshooting : https://adoptopenjdk.net/index.html

Flow
  • 2,476
2

openjdk-15-jdk is available from the default repositories in Ubuntu 20.10 (and later releases). You can install openjdk-15-jdk from the Ubuntu 20.10 universe repository in Ubuntu 18.04 using apt pinning. You can also install openjdk-15-jdk without apt pinning by installing Ubuntu 20.10 in a virtual machine like a KVM/QEMU (qemu-kvm) virtual machine created in Virtual Machine Manager (virt-manager).

karel
  • 122,292
  • 133
  • 301
  • 332