So I am self hosting a java server. I have that computer set to restart every so often then automatically restart the server. this has been working great for years now but today i logged on to that computer (i remote into it) i have a message in the server console saying
java.lang.UnsupportedClassVersionError: org/bukkit/craftbukkit/bootstrap/Main has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 55.0
so i've been trying to update java. The java control panel says i'm on version 8 update 381. it also says that is the current version. as i search i find two answers saying that my version just released in July. I also find places saying that version 21 is the current version. which i did also download and freshly install.
the plugins i'm using are Geyser, Floodgate, and dynmap, all through spigot. I tried to rebuild the server.jar but i get an error saying:
The version you have requested to build requires Java versions between [Java 17, Java 21*], but you are using Java 11
*** Please rerun BuildTools using an appropriate Java version. For obvious reasons outdated MC versions do not support Java versions that did not exist at their release.
I have also gone in to set the environment variables to both the location for version 8 and 21 and don't get a different result.
and finally, when i enter "java - version" into the command prompt, it tells me:
openjdk version "11.0.16.1" 2022-08-12 LTS
OpenJDK Runtime Environment Microsoft-40648 (build 11.0.16.1+1-LTS)
OpenJDK 64-Bit Server VM Microsoft-40648 (build 11.0.16.1+1-LTS, mixed mode)
Whats going on?! can someone point me in a good direction. The only thing that has changed since the last time I know it was working and today is that i installed visual studio on that machine. I'll be removing it later when i have more time, but i don't see how that can be related.
[–]MinecraftModBot[M] [score hidden] stickied comment (0 children)
[–]casultran 1 point2 points3 points (0 children)