#Error while attempting to start a server

1 messages · Page 1 of 1 (latest)

meager vigil
#

While attempting to start a server (it's done this with every server I've tried but in this case it's the BetterMC serverpack), I've been met with the following error in Powershell:

java.lang.RuntimeException: An exception occurred when launching the server!
    at net.fabricmc.loader.impl.launch.server.FabricServerLauncher.main(FabricServerLauncher.java:71)
    at net.fabricmc.installer.ServerLauncher.main(ServerLauncher.java:69)
Caused by: java.lang.RuntimeException: Error invoking MC server bundler: java.lang.UnsupportedClassVersionError: net/minecraft/bundler/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 52.0
    at net.fabricmc.loader.impl.game.minecraft.BundlerProcessor.process(BundlerProcessor.java:102)
    at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.locateGame(MinecraftGameProvider.java:190)
    at net.fabricmc.loader.impl.launch.knot.Knot.createGameProvider(Knot.java:177)
    at net.fabricmc.loader.impl.launch.knot.Knot.init(Knot.java:130)
    at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:68)
    at net.fabricmc.loader.impl.launch.knot.KnotServer.main(KnotServer.java:23)
    at net.fabricmc.loader.impl.launch.server.FabricServerLauncher.main(FabricServerLauncher.java:69)
    ... 1 more
Caused by: java.lang.UnsupportedClassVersionError: net/minecraft/bundler/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 52.0
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:756)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:635)
    at net.fabricmc.loader.impl.game.minecraft.BundlerProcessor$1.loadClass(BundlerProcessor.java:65)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:348)
    at net.fabricmc.loader.impl.game.minecraft.BundlerProcessor.process(BundlerProcessor.java:85)
    ... 7 more```

If I try to actually change the specified java installation to my installed Temurin 8, 
by directing the "java" variable in variable.txt, it throws an error stating "incorrect modloader was specified", and throwing this in powershell (found on the .txt). 
I'd prefer leaving this untagged because it's not localized specifically to just modpacks but I'm forced to tag it.
scarlet moat
#

looks like you’re trying to run a version that needs Java 17 or 18

#

did you say you were getting a different error when you tried those?

meager vigil
#

I tried to direct the installation to Temurin 8 specifically, but I can try directing it to 17 instead

scarlet moat
#

what minecraft version is this?

#

I haven’t opened the full log

meager vigil
#

1.19.2

scarlet moat
#

yeah you need 17 or 18

meager vigil
#

Still throws the second error if I direct it to 17

scarlet moat
#

Can you send that log

meager vigil
#

Unless I'm terminally retarded, this is how I'm trying to direct it is by direct file path

#

Essentially the same log as the first one

scarlet moat
#

ah it doesn’t like your backslashes

meager vigil
#

Seriously

scarlet moat
#

because \ is an escaped character

#

you can either use \ or /

#

Uhhhh discord escaped it too lol

#

double backslash

#

or /

meager vigil
#

Alright

#

I hate windows sometimes, so this wasn't even an issue with the file it's just how windows reads files

#

Epico

#

Okkkay...

#
Improved Fabric Server Launcher available...
The improved launcher will be used to run this Fabric server.
fabric-server-launcher.jar present.


Skipping Minecraft Server JAR checks because we are using the improved Fabric Server Launcher.


eula.txt present. Moving on...


Starting server...

Minecraft version: 1.19.2
Modloader:         Fabric
Modloader version: 0.14.21
Launcher JAR:      fabric-server-launcher.jar

Java args:         -Xmx6G
Java path:         C:\Program Files\Eclipse Adoptium\jre-17.0.7.7-hotspot
Run Command:       C:\Program Files\Eclipse Adoptium\jre-17.0.7.7-hotspot -Dlog4j2.formatMsgNoLookups=true -Xmx6G -jar fabric-server-launcher.jar nogui
Java version:
'"C:\Program Files\Eclipse Adoptium\jre-17.0.7.7-hotspot"' is not recognized as an internal or external command,
operable program or batch file.

'"C:\Program Files\Eclipse Adoptium\jre-17.0.7.7-hotspot"' is not recognized as an internal or external command,
operable program or batch file.```
#

Now it's throwing this

#

Do I need to add like, run- or something

#

Wait

#

Wait wait wait

#

Do I need to set this up at a .bat file

#

And run it that way

scarlet moat
#

looks like that specific script is gonna need you to point directly to the Java .exe

#

instead of just to the folder

meager vigil
#

Annnnd yep that fixed it

#

What a pain

#

Thank you regardless, good to know windows can't read single backslashs