Startup Issue with Minecraft - Cannot start server (outdated Java version?)

You’re probably reading the error backwards if you’re using a modern MC version.
Version 52 is Java 8, and you need Java 21 for anything newer than 1.20.5.
On Linux you can run getamp installJava as root to install newer LTS versions.

Also note, your AMP install is fairly out of date, and you should update before creating any new instances:
https://discourse.cubecoders.com/t/how-to-update-amp-to-the-latest-version/2297