Startup Issue with Minecraft - Server Failed to Start

System Information

Field Value
Operating System Linux - Ubuntu 22.04.4 on x86_64
Product AMP ‘Callisto’ v2.5.0.8 (Mainline)
Virtualization OpenVZ
Application Minecraft
Module MinecraftModule
Running in Container No
Current State Failed

Problem Description

Issue

Application is not starting.
This is in the logs:
java.lang.UnsupportedClassVersionrecognizes class file versions up to 63.0Error: net/minecraft/bundler/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

Reproduction Steps

  • Stop the instance.
  • start the instance
  • Application is in a stopped state so I reviewed the logs. They show the below error about version mismatch.

What java version are you using? You need to use Java 21 for this