Alright, let’s get your Java updated to version 21, Temurin style! Since you’re already on Debian 11, we should have what we need.
-
Switch to the root user: If you aren’t the root user already, let’s become root.
sudo su -
-
Install Temurin 21: The repository should already be added, so just run:
apt update apt install temurin-21-jdk
-
Verify installation: Make sure Java 21 is successfully installed.
java -version
Once installed, you might need to point AMP to the correct Java version. Ready to continue?