DietPi and Java downgrade

I installed on my odroid this image :
DietPi_OdroidN2-ARMv8-Bullseye
Problem is, that I want run a OpenHAB on this system, but it require a Java v11:

On Java 11 this works, because Nashorn is available. On Java 17 Nashorn is not available, so the script type js is not registered and the createAndLoad method is never called.

How can I make a downgrade to v11 from actual v17 which is part of dietpi ?

Welcome to our community.

There is no need to downgrade as you can install multiple versions next to each other. An idea how to manage could give the following blog Install and manage multiple Java JDK and JRE versions on Ubuntu 20.04 – Pete Wan Blog

1 Like

Problem is solved
Working
Thanks