Ah, gotcha. Hostinger can sometimes have a different setup. Let’s use the getamp
script on your Debian host to fetch and install the necessary Java version.
-
Switch to root user: If you haven’t already.
sudo su -
-
Run the getamp script: This will install all relevant Java versions including Java 21.
getamp installJava
This script takes care of fetching and installing the necessary Java versions for you.
Ready to run it?