go to ssh and then you need to go to the root user sudo su -l and then run this command bash <(wget -qO- getamp.sh) installJava and you will get java 21 installed onto your system. Once its installed, you will need to restart your Minecraft instance for AMP to see java 21 in Configuration > Java and Memory and then there you can select it
Could java cause the amp console to report “404 Not Found”?
I installed the latest Amp hotfix 3 days ago and I lost console access after updating my Minecraft instances. I first got a message saying Amp could not connect to the back-end database. I restarted the linux server but no success. Still getting 404 error. I will try this Java update. Please let me know if anyone has any suggestions.
Ok, I fixed the “404 Not Found” issue by using the SSH console to run Ubuntu updates and rebooting. I then ran the bash command to upgrade to Java 21. My MC instance is Spigot. I set the Java to v21 and then tried to upgrade to 1.20.6 and Amp kicked me out of the console. It gave me the AMP “install” message tell me to wait 3-5 minutes. After a few minutes I was able to get back into the console but the instance was not upgrade (still 1.20.4). The java is showing v21 still. I am going to leave this alone and wait for more posts from people.