I am currently running a fabric server on 1.21.10. I tried to upgrade the instance to 26.1.2. When I do this it breaks the server. I currently have an unable to run error. The error message states “ The Minecraft server stopped within 5 seconds of starting, this is not a fault with AMP - you should check your Minecraft servers log files to find out why it is unable to start.” When I revert back to 1.21.10 the server works again. Any advice?
Reproduction Steps
went to config and upgraded minecraft version to 26.1.2
updated server
server fails to start and gives me an unable to run message
Caused by: java.lang.UnsupportedClassVersionError: net/minecraft/bundler/Main has been compiled by a more recent version of the Java Runtime (class file version 69.0), this version of the Java Runtime only recognizes class file versions up to 65.0
I had the same issue and spent way to long trying to figure it out last night. If you are running the Minecraft server on AMP using docker/ a container you need to select a docker image with java-25 included.
The Java Version in the drop down is if you are running it on the machine instead of in docker.
You could also install a newer version of java on your Ubuntu system. The below instructions were from the adoptium Temurin JDK 25 installation instructions. I followed these yesterday to install JDK 25 on my Debian VM.