Startup Issue with Minecraft - Server is unable to start

System Information

Field Value
Operating System Linux - Debian GNU/Linux 11 on x86_64
Product AMP ‘Callisto’ v2.5.0.14 (Mainline)
Virtualization QEMU_KVM
Application Minecraft
Module MinecraftModule
Running in Container No
Current State Failed

Problem Description

Issue

I updated my server from 1.20 paper to 1.21 paper. Ever since then it won’t let me start the server. The error I get from the console is the following

Exception in thread “ServerMain” java.lang.UnsupportedClassVersionError: org/bukkit/craftbukkit/Main has been compiled by a more recent version of the Java Runtime (class file version 65.0), this version of the Java Runtime only recognizes class file versions up to 61.0

Reproduction Steps

  • Start Server
  • Wait a few seconds
  • Server says can’t start server

Select a newer version of Java within AMP.