Problem with server hosting (sorry if this isn't allowed)
Hosting a forge server on 1.21. Only mod is simpleships. Server works great, other people can join, portforwarding not an issue (promise.) I just can't join on a clinet on the same computer - I get:
java.lang.NoClassDefFoundError: com/google/common/collect/Maps$9
I guess it's just using the wrong java? I'm not sure how to solve this though.
Please forgive if this isn't allowed here, I'm desperate
38 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 ryeob02#0
Eventually works if i relaunch launcher a million times and pray to the spaghetti god, but not exactly ideal. Any ideas?
are u using '
localhost
' to join if ur trying to connect from the same pc?yeah, have also tried my actual ip and my local ip
i would just make sure u have the exact same mod on the client as the server
Exact same forge version (not just minecraft version)
and exact same java version
the only hangup i can see is the java version
client runs fine without, but server requires java 21+
then when i add java 21+, this problem occurs
uninstall it, server wont start. install it, can't join on client
you cant run minecraft 1.21 unless u have java 21+
vicious cycle of banging my head against the wall
period.
well i believe you
uh
lemme give er a peek
its not a matter of believing
its a fact
if u "think" otherwise u are either not running minecraft 1.21, or u are actually running java 21 when u think u arent
investigating
ok have uninstalled all versions except for jdk22
can confirm issue is still happening
lets just start over
how are u running the server? is on a windows pc? running a startup script?
windows pc using default forge run.bat
ok can u share the contents of that run.bat file
sure. you wnat the file or copypasted into chat?
copy paste the contents
ok open up a command prompt
sure
type java --version
ok, now open up minecraft
k
also launch the server and share the logs
upload to mclogs
servers up
ppl are playing rn lol
ok can u still share the latest log?
yea
there u go
can u do the same with your client logs?
uhh
yh
well ur client is running java 21
try having ur client run java 22
i dont think this should matter, but doesnt hurt to try
i can give it a go
as far as i understand i have java 22 installed?
not sure
can you send a link to a java 22 download?
what kind of client are u using
?
how are u starting minecraft
modrinth launcher? curseforge? prism?
uh
default launcher
vanilla launcher*
heading to bed. praying for this to magically resolve by tomorrow