I have tried many tutorials, but none of them worked. I am using this file: https://github.com/AdoptOpenJDK/openjdk16-binaries/releases/download/jdk-16.0.1%2B9/OpenJDK16U-jdk_aarch64_linux_hotspot_16.0.1_9.tar.gz from here: https://github.com/AdoptOpenJDK/openjdk16-binaries/releases/tag/jdk-16.0.1%2B9
Hi,
on our latest Bullseye image and DietPi v7.5, we will install OpenJDK -17
DietPi-Software
─────────────────────────────────────────────────────
Mode: Installing Java JRE: OpenJDK Runtime Environment
[ INFO ] DietPi-Software | APT install for: ca-certificates-java openjdk-17-jre-headless, please wait... (1/2)
DietPi-Software
─────────────────────────────────────────────────────
Mode: Installing Java JDK: OpenJDK Development Kit
[ INFO ] DietPi-Software | APT install for: openjdk-17-jdk-headless, please wait...
Another simple way on how to install OpenJDK 16 is to follow official instruction on AdoptOpenJDK web site https://adoptopenjdk.net/installation.html?variant=openjdk8&jvmVariant=hotspot#linux-pkg
root@DietPi3:~# java -version
openjdk version "16.0.1" 2021-04-20
OpenJDK Runtime Environment AdoptOpenJDK-16.0.1+9 (build 16.0.1+9)
OpenJDK Server VM AdoptOpenJDK-16.0.1+9 (build 16.0.1+9, mixed mode)
root@DietPi3:~#
This worked, thank you!
ok perfect