How do I install OpenJDK 16 Topic is solved

Having issues with your DietPi installation or found a bug? Post it here.
Post Reply
TechPotato
Posts: 6
Joined: Fri May 14, 2021 2:23 am

How do I install OpenJDK 16

Post by TechPotato »

I have tried many tutorials, but none of them worked. I am using this file: https://github.com/AdoptOpenJDK/openjdk ... 1_9.tar.gz from here: https://github.com/AdoptOpenJDK/openjdk ... 16.0.1%2B9
User avatar
Joulinar
Posts: 5619
Joined: Sat Nov 16, 2019 12:49 am

Re: How do I install OpenJDK 16

Post by Joulinar »

Hi,

on our latest Bullseye image and DietPi v7.5, we will install OpenJDK -17

Code: Select all

 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)

Code: Select all

 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.h ... #linux-pkg

Code: Select all

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:~#
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
TechPotato
Posts: 6
Joined: Fri May 14, 2021 2:23 am

Re: How do I install OpenJDK 16

Post by TechPotato »

This worked, thank you!
User avatar
Joulinar
Posts: 5619
Joined: Sat Nov 16, 2019 12:49 am

Re: How do I install OpenJDK 16

Post by Joulinar »

ok perfect
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Post Reply