Trying to start latest 1.17.1 builds and not working...what changed?


when I run sponge just using jar command (java -jar ~/.m2/repository/org/spongepowered/spongevanilla/1.17.1-9.0.0-RC955/spongevanilla-1.17.1-9.0.0-RC955-universal.jar) I get this error:

[12:02:53] [main/INFO] [app launch]: Transitioning to ModLauncher, please wait...
[12:02:53] [main/ERROR]: Failed to invoke main class org.spongepowered.vanilla.applaunch.Main due to an error: java.lang.ExceptionInInitializerError
	at org.spongepowered.vanilla.applaunch.Main.main(
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(
	at java.base/java.lang.reflect.Method.invoke(
	at org.spongepowered.vanilla.installer.InstallerMain.invokeMain(
	at org.spongepowered.vanilla.installer.InstallerMain.downloadAndRun(
	at org.spongepowered.vanilla.installer.InstallerMain.main(
	at org.spongepowered.vanilla.installer.VersionCheckingMain.runInstaller(
	at org.spongepowered.vanilla.installer.VersionCheckingMain.main(
Caused by: java.lang.UnsupportedOperationException: No class provided, and an appropriate one cannot be found.
	at org.apache.logging.log4j.LogManager.callerClass(
	at org.apache.logging.log4j.LogManager.getLogger(
	at org.apache.logging.log4j.LogManager.getLogger(
	at org.spongepowered.vanilla.applaunch.util.ArgumentList.<clinit>(
	... 12 more

other weird is that with older sponge (1.12 based that just works) but I also used jbang to run sponge but with 1.17 I now get:

[12:13:35] [main/ERROR]: Failed to download Sponge libraries and/or Minecraft: java.lang.IllegalStateException: The SpongeVanilla jar must be run as a java agent in order to add downloaded libraries to the classpath!

If any of you know solution to either errors I would be very grateful :slight_smile:

What version of Java are you using? Minecraft 1.17 and beyond require Java 17, whereas 1.16 and prior use Java 8.

I’m using Java 17.

so I got it starting by setting the jar as an agent and adding log4j2 to the classpath.
but now plugins/mods aren’t loading from mods folder…