Problem summary
I'm trying to set up my raspberry pi 4 as a minecraft server as described here.
I've installed the default version of java. The output from java -version is
openjdk version "17.0.11" 2024-04-16
The next step is to launch the server with the command
java -Xmx1024M -Xms1024M -jar server.jar
However, when I try this, I get the following error
LinkageError occurred while loading main class net.minecraft.bundler.Main
java.lang.UnsupportedClassVersionError: 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 recognizes class file versions up to 61.0
I assume that this means that the minecraft server uses files written for a later version of Java?
If this is true, how can I get more recent versions of Java for raspberry pi OS?
I imaged the card just yesterday using the Raspberry Pi Imager and did apt update and upgrade.
Linux raspberrypi 6.6.20+rpt-rpi-v8 #1 SMP PREEMPT Debian 1:6.6.20-1+rpt1 (2024-03-07) aarch64