[Error] Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/logging/log4j/Level

Hello sponge,
I have gotten this error…I have looked up other posts with the same error, but this seems to be a bit different(I think).
Version: 1.10.2-5.1.0-BETA-366
I had to use the chmod a+x on the command line to launch the script. I have minecraft_server.jar- + lauch.commad- + SpongeVanilla.jar- + library files.

Exception in thread “main” java.lang.NoClassDefFoundError: org/apache/logging/log4j/Level
at net.minecraft.launchwrapper.Launch.launch(Launch.java:94)
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
at org.spongepowered.server.launch.VanillaServerMain.main(VanillaServerMain.java:118)
at org.spongepowered.server.launch.VersionCheckingMain.main(VersionCheckingMain.java:38)
Caused by: java.lang.ClassNotFoundException: org.apache.logging.log4j.Level
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
… 4 more

It is possible that downloading the original minecraft_server.jar failed. Have you tried running SpongeVanilla in a new, empty folder?

I tried running this is a differnt folder, but it still didnt work…When I do the command java -jar sponge.jar… it downloads the minecraft_server.jar, but the terminal doesnt stop running, so it seems like the file didnt realy load. I will let it run for a while, but the because the file is in the folder already, I would guess the thing gliched out…

You can try downloading the Minecraft server manually from the Minecraft website or directly from this link: https://s3.amazonaws.com/Minecraft.Download/versions/1.10.2/minecraft_server.1.10.2.jar

You need to place the downloaded file in the same folder as your spongevanilla.jar file. After you have downloaded it, SpongeVanilla should no longer attempt to download it automatically.

ohh ok ill try that

Thank you works like a charm.

1 Like