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
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
update java
how? I'm using ubuntu for the first time so i have no idea how to do that on this os
you're using java 17 right?
sudo apt install openjdk-21-jdk
and to make matters worse i decided to use ubuntu server so i have no gui whatsoever lol
I should be
yeah, i'm assuming you're trying to run 1.20.5/6/1.21
which needs java 21
okay thanks lol
🤦♂️
I'm watching an out of date tutorial
!answered
post closed!
The post/thread has been closed!
Requested by mrpotat0head#0