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
  • 114,770

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

FloT
  • 2,326
  • 1
    Do you know what is the difference between adopt and the one from ppa:openjdk-r/ppa ? – Krzysztof Krasoń Oct 06 '20 at 14:29
  • They both come from the same source code and will provide you the same Java capabilities. AdoptOpenJDK let you choose between Hotspot and OpenJ9 JVM. You can see further details here : https://adoptopenjdk.net/about.html or https://stackoverflow.com/questions/52431764/difference-between-openjdk-and-adoptium-adoptopenjdk – FloT Oct 07 '20 at 06:16
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
  • 114,770