It's my first time making a server on one of my devices and i don't know how to fix this error

user@device-name:~/minecraft$ java -Xmx6G -Xms1024M -jar server.jar nogui 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
8 Replies
Admincraft Meta
Admincraft Meta6mo ago
Thanks for asking your question!
Make sure to provide as much helpful information as possible such as logs/what you tried and what your exact issue is
Make sure to mark solved when issue is solved!!!
/close !close !solved !answered
Requested by mrpotat0head#0
Skullians
Skullians6mo ago
update java
Mr.punkinHead
Mr.punkinHeadOP6mo ago
how? I'm using ubuntu for the first time so i have no idea how to do that on this os
Skullians
Skullians6mo ago
you're using java 17 right? sudo apt install openjdk-21-jdk
Mr.punkinHead
Mr.punkinHeadOP6mo ago
and to make matters worse i decided to use ubuntu server so i have no gui whatsoever lol I should be
Skullians
Skullians6mo ago
yeah, i'm assuming you're trying to run 1.20.5/6/1.21 which needs java 21
Mr.punkinHead
Mr.punkinHeadOP6mo ago
okay thanks lol 🤦‍♂️ I'm watching an out of date tutorial !answered
Admincraft Meta
Admincraft Meta6mo ago
post closed!
The post/thread has been closed!
Requested by mrpotat0head#0

Did you find this page helpful?