How to install Java 17 on Raspi OS Buster (Debian 10)?

I have a RPI 3 with the following OS:

cat /etc/os-release
PRETTY_NAME="Raspbian GNU/Linux 10 (buster)"
NAME="Raspbian GNU/Linux"
VERSION="10 (buster)"

After an update & upgrade, if I try to install openJDK 17, the package is not found:

sudo apt install openjdk-17-jre
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances
Lecture des informations d'état... Fait
E: Impossible de trouver le paquet openjdk-17-jre

sudo apt-cache search openjdk-17 returns nothing.
sudo apt-cache search openjdk shows me only packages for Java 8, 9, 10 and 11.

Maybe I have a new repository to add but which one ?
Or a binary to download somewhere ? But where ?

Or does Java 17 requires Rasp OS Bullseye (Debian 11) ???

In an other thread an other user ( as far as I remember ) had the same problem.
My advice was to use zulu17 which at the end is working for him.

openjdk-17-jre requires higher level of libc than the one which is available on Debian 10.

Other alternative as you wrote would be to go for Debian 11.

1 Like

Thank you for your answer, I will search zulu17.

Zulu JRE for ARM 32 bit HF:

I was able to install it. Will see later if it works. I have now Zulu11 and Zulu17 on the same RPI 3.

And it seems to work with a OH4 snapshot.
Will see if this is stable after few days and more tests.

1 Like

I have had this combo (buster/Zulu jdk17) working on both rpi3b and rpi4 for several weeks. Have installed zwave4snapshots but still OH3.4 core.

Just for clarification, Oh3.x must be run with java 11 while OH4 must be run with java 17.

It (OH3.4/Java17) has been working for me for about 3 weeks, but thanks for the information in case I start to have problems :wink:

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.