I have a problem with the installation of java (jdk17) on raspian (Raspian 11 (bullseye). I need jdk17 but raspian packagemanager only want to install jdk11 so i decided to use sdkman. Using the tutorial here:https://foojay.io/today/installing-java-with-sdkman-on-raspberry-pi/ I installed sdkman and then java (17.0.6.-zulu), but when I restart the pi java is gone, even java -version does not work.
I look if my sd card is readonly, but it isn't the typed and used commands also remain in the bash history and sdkman files are also at their location after reboot.
How can I install java on my pi?