Hi,
Minecraft v1.17 and up will require Java 16 to run successfully, whereas before 1.17, the required Java version was 11+. See: https://www.minecraft.net/ru-ru/article/minecraft-snapshot-21w19a for release notes regarding snapshot 21w19a, which was a snapshot for Minecraft 1.17.
@AlexProgrammerDE responded in another thread with a solution: Error with .jar file - #23 by AlexProgrammerDE. In summary, if you are part of an open fleet (balenaHub: an easier way to find and publish apps and projects for edge devices), your Minecraft server should have been updated automatically to use Java 16, otherwise you can redeploy following the instructions in Alex’s GitHub repo: GitHub - AlexProgrammerDE/balena-minecraft-server: Build a Minecraft Server using a Raspberry Pi 4! Supports common Servers, SCP, RCON and Wifi Connect.
Let us know if that works for you!
Regards,
Christina