I couldn't find how to ask a question in Replit, so I'm asking it here.
I'm trying to run a Minecraft 1.17.1 server on Replit, but when I run the server.jar file:
java -jar ./server.jar
I get the following error:
Error: LinkageError occurred while loading main class net.minecraft.server.Main
java.lang.UnsupportedClassVersionError: net/minecraft/server/Main has been compiled by a more recent version of the Java Runtime (class file version 60.0), this version of the Java Runtime only recognizes class file versions up to 55.0
I believe it's something to do with the Java version on Replit, but I'm not sure how to update Java.
Any help appreciated.