Can't start Minecraft Java Server

OS Name/Version: Windows Server 2019 Essentials

Product Name/Version: AMP Release “Triton” v2.3.4.4, built 26/07/2022 20:08

Problem Description: After creating a new instance for Minecraft Java and starting it, logging into management interface, updating the server, and attempting to start the server it will not start.

Steps to reproduce:

  • Step 1 Create new instance for Minecraft Java and start it
  • Step 2 Login to management interface and update Minecraft Java
  • Step 3 Attempt to start server

Actions taken to resolve so far: Updated server, deleted instance; created new instance and updated server, issue persists. So far 2 for 2 on instances I’ve created that will not start the server.

Logs:

[17:18:04] [Program Info]         : Starting AMP version 2.3.4.4 (Triton), built 26/07/2022 20:08
[17:18:04] [Program Info]         : Stream: Mainline (Release) - built by CUBECODERS/buildbot on CCL-DEV
[17:18:04] [Program Info]         : Running in a HyperV environment.
[17:18:04] [Core Warning]         : Current time zone is set to Eastern Standard Time - Servers should ideally be UTC to avoid time-zone related issues
[17:18:04] [Program Info]         : OS: Windows / x86_64
[17:18:04] [Program Info]         : CPU: Common KVM processor (4C/4T)
[17:18:04] [Program Info]         : AMP Instance ID: 7750d111-736b-4faa-8822-78f4942a4f89
[17:18:05] [Core Info]            : Loaded MinecraftModule version 1.0.0.3 by CubeCoders Limited
[17:18:05] [Core Info]            : Metrics publishing is enabled at udp://localhost:12820.
[17:18:05] [ModuleLoader Info]    : Loaded FileManagerPlugin version 1.0.0.0 by CubeCoders Limited
[17:18:05] [ModuleLoader Info]    : Loaded EmailSenderPlugin version 1.0.0.0 by CubeCoders Limited
[17:18:05] [ModuleLoader Info]    : Loaded WebRequestPlugin version 1.0.0.0 by CubeCoders Limited
[17:18:05] [ModuleLoader Info]    : Loaded LocalFileBackupPlugin version 1.0.0.0 by CubeCoders Limited
[17:18:05] [ModuleLoader Info]    : Loaded CommonCorePlugin version 1.0.0.0 by CubeCoders Limited
[17:18:05] [Core Info]            : Licence Present: AMP Network Standard Edition (Licenced to Anthony Zuniga)
[17:18:06] [ModuleLoader Notice]  : Using keypair with fingerprint FIhVHeGtom80wgNl9lYr3GSYQDnNg7N5/JVuL+c/h+4=
[17:18:06] [ModuleLoader Info]    : SFTP Server started on 0.0.0.0:2225
[17:18:06] [WebServer Info]       : Websockets are enabled.
[17:18:06] [Core Info]            : Webserver started on http://127.0.0.1:8082
[17:18:06] [WebServer Warning]    : RouterTimer@10Hz with 2 jobs started
[17:18:06] [System Info]          : Checking for AMP updates...
[17:18:06] [System Info]          : AMP is up-to-date.
[17:18:06] [RemoteAMPAuth:Anonymous Activity] : Authentication attempt for user anthony.zuniga from 127.0.0.1
[17:18:08] [System Info]          : Updating Modpack cache for 95 modpacks...
[17:18:11] [RemoteAMPAuth:Anonymous Activity] : Authentication success
[17:18:12] [RemoteAMPAuth:Anonymous Activity] : Authentication attempt for user anthony.zuniga from 127.0.0.1
[17:18:15] [RemoteAMPAuth:Anonymous Activity] : Authentication failure for user anthony.zuniga from 127.0.0.1 - TokenRejected
[17:18:22] [RemoteAMPAuth:Anonymous Activity] : Authentication attempt for user anthony.zuniga from 127.0.0.1
[17:18:22] [RemoteAMPAuth:Anonymous Activity] : Authentication success
[17:18:29] [API:anthony.zuniga Activity] : Updating the application.
[17:18:29] [Minecraft:anthony.zuniga Warning] : Tried to update, but update data is not yet available. Try later.
[17:18:36] [API:anthony.zuniga Activity] : Updating the application.
[17:18:36] [Minecraft:anthony.zuniga Warning] : Tried to update, but update data is not yet available. Try later.
[17:18:36] [System Info]          : Update complete.
[17:18:43] [API:anthony.zuniga Activity] : Updating the application.
[17:18:54] [API:anthony.zuniga Activity] : Starting the application.
[17:18:56] [API:anthony.zuniga Activity] : Starting the application.
[17:18:56] [Minecraft:anthony.zuniga Info] : Java located at C:\Program Files\Java\jre1.8.0_341\bin\java.exe
[17:18:56] [Minecraft:anthony.zuniga Info] : Using 'Official' compatibility mode.
[17:18:56] [Minecraft:anthony.zuniga Warning] : Server failed to start 1/5 times...
[17:18:56] [Minecraft:anthony.zuniga Warning] : Server stopped within 5 seconds of starting, AMP will not attempt to restart it.
Error: A JNI error has occurred, please check your installation and try again
Exception in thread "main" java.lang.UnsupportedClassVersionError: net/minecraft/bundler/Main has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 52.0
	at java.lang.ClassLoader.defineClass1(Native Method)
	at java.lang.ClassLoader.defineClass(Unknown Source)
	at java.security.SecureClassLoader.defineClass(Unknown Source)
	at java.net.URLClassLoader.defineClass(Unknown Source)
	at java.net.URLClassLoader.access$100(Unknown Source)
	at java.net.URLClassLoader$1.run(Unknown Source)
	at java.net.URLClassLoader$1.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(Unknown Source)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	at sun.launcher.LauncherHelper.checkAndLoadMain(Unknown Source)

You have the wrong java version selected. use java 17

After manually installing java 17 we’re up and running! thank you!