Startup Issue with Minecraft - Server won't start, Java version mismatch

System Information

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

Problem Description

Issue

My VPS is running AMP for game hosting, and I need Java 21 installed at the OS level so AMP’s Java Version dropdown recognizes it. Can you install this, or do I need SSH access to do it myself?

Reproduction Steps

  • Selected NeoForge 21.1.x with Minecraft 1.21.1 as server type
  • Attempted to start the server
  • Server stopped within 5 seconds with UnsupportedClassVersionError

SSH access makes this easy, yes. Run getamp installJava as root. If you don’t have SSH access, try running your Minecraft instance in a container. If I’m not mistaken, the container will resolve all the important java dependencies for you. Unsure if it will do so with an existing instance switched to running in a container or if you need to create a new instance. Try both in the order I listed them. :slight_smile: