Another Fabric Loader Error with custom non-official launcher
See original GitHub issueSo I left an issue related to this similar project a few weeks ago here: https://github.com/FabricMC/fabric-loader/issues/418 Most of the tale is the same as last time - I’m using a custom launcher made for the new Mac ARM platform made by someone else on GitHub - and this time I’m updating it for 1.17 Fabric. I’ve been much more careful than last time, but I essentially get the same error -
!![MultiMC]!Using onesix launcher.
Failed to start Minecraft:
java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:567)
at org.multimc.onesix.OneSixLauncher.launchWithMainClass(OneSixLauncher.java:196)
at org.multimc.onesix.OneSixLauncher.launch(OneSixLauncher.java:231)
at org.multimc.EntryPoint.listen(EntryPoint.java:143)
at org.multimc.EntryPoint.main(EntryPoint.java:34)
Caused by: java.lang.NoClassDefFoundError: org/objectweb/asm/ClassVisitor
at net.fabricmc.loader.game.MinecraftGameProvider.<clinit>(MinecraftGameProvider.java:51)
at net.fabricmc.loader.game.GameProviders.create(GameProviders.java:26)
at net.fabricmc.loader.launch.knot.Knot.init(Knot.java:79)
at net.fabricmc.loader.launch.knot.KnotClient.main(KnotClient.java:28)
... 8 more
Caused by: java.lang.ClassNotFoundException: org.objectweb.asm.ClassVisitor
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:636)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:182)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:519)
... 12 more
Exiting with -1
Which I can deduce it can’t find the asm libraries, but the thing is, I’ve checked and double checked and triple checked all my scripts! I wasn’t wanting to come here with the exact same issue as before, but I really have no idea what’s going on. Here is the launch shell script called launchFabric.sh that references all of the libraries.
UUID=$(python3 getuuid.py $1 $2)
USERNAME=$(python3 getusername.py $1 $2)
AUTH_TOKEN=$(python3 getauthtoken.py $1 $2)
cp launchscript launchscript2
echo param --gameDir >> launchscript2
echo param "$(pwd)"/minecraft >> launchscript2
echo param --assetsDir >> launchscript2
echo param "$(pwd)"/assets >> launchscript2
echo param --accessToken >> launchscript2
echo param $AUTH_TOKEN >> launchscript2
echo sessionId token:$AUTH_TOKEN >> launchscript2
echo param --username >> launchscript2
echo param $USERNAME >> launchscript2
echo userName $1 >> launchscript2
echo param --uuid >> launchscript2
echo param $UUID >> launchscript2
echo cp "$(pwd)"/libraries/lwjgljars.jar >> launchscript2
echo cp "$(pwd)"/libraries/blocklist-1.0.5.jar >> launchscript2
echo cp "$(pwd)"/libraries/patchy-2.1.6.jar >> launchscript2
echo cp "$(pwd)"/libraries/oshi-core-5.7.4.jar >> launchscript2
echo cp "$(pwd)"/libraries/jna-5.8.0.jar >> launchscript2
echo cp "$(pwd)"/libraries/jna-platform-5.8.0.jar >> launchscript2
echo cp "$(pwd)"/libraries/slf4j-api-1.8.0-beta4.jar >> launchscript2
echo cp "$(pwd)"/libraries/log4j-slf4j18-impl-2.14.1.jar >> launchscript2
echo cp "$(pwd)"/libraries/icu4j-66.1.jar >> launchscript2
echo cp "$(pwd)"/libraries/javabridge-1.1.23.jar >> launchscript2
echo cp "$(pwd)"/libraries/jopt-simple-5.0.3.jar >> launchscript2
echo cp "$(pwd)"/libraries/netty-all-4.1.25.Final.jar >> launchscript2
echo cp "$(pwd)"/libraries/guava-21.0.jar >> launchscript2
echo cp "$(pwd)"/libraries/commons-lang3-3.5.jar >> launchscript2
echo cp "$(pwd)"/libraries/commons-io-2.5.jar >> launchscript2
echo cp "$(pwd)"/libraries/commons-codec-1.10.jar >> launchscript2
echo cp "$(pwd)"/libraries/jinput-2.0.5.jar >> launchscript2
echo cp "$(pwd)"/libraries/jutils-1.0.0.jar >> launchscript2
echo cp "$(pwd)"/libraries/brigadier-1.0.18.jar >> launchscript2
echo cp "$(pwd)"/libraries/datafixerupper-4.0.26.jar >> launchscript2
echo cp "$(pwd)"/libraries/gson-2.8.0.jar >> launchscript2
echo cp "$(pwd)"/libraries/authlib-2.3.31.jar >> launchscript2
echo cp "$(pwd)"/libraries/commons-compress-1.8.1.jar >> launchscript2
echo cp "$(pwd)"/libraries/httpclient-4.3.3.jar >> launchscript2
echo cp "$(pwd)"/libraries/commons-logging-1.1.3.jar >> launchscript2
echo cp "$(pwd)"/libraries/httpcore-4.3.2.jar >> launchscript2
echo cp "$(pwd)"/libraries/fastutil-8.2.1.jar >> launchscript2
echo cp "$(pwd)"/libraries/log4j-api-2.14.1.jar >> launchscript2
echo cp "$(pwd)"/libraries/log4j-core-2.14.1.jar >> launchscript2
echo cp "$(pwd)"/libraries/text2speech-1.11.3.jar >> launchscript2
echo cp "$(pwd)"/libraries/text2speech-1.11.3.jar >> launchscript2
echo cp "$(pwd)"/libraries/text2speech-1.11.3-natives-linux.jar >> launchscript2
echo cp "$(pwd)"/libraries/text2speech-1.11.3-natives-windows.jar >> launchscript2
echo cp "$(pwd)"/libraries/text2speech-1.11.3-sources.jar >> launchscript2
echo cp "$(pwd)"/libraries/java-objc-bridge-1.0.0.jar >> launchscript2
echo cp "$(pwd)"/libraries/minecraft-1.17-client.jar >> launchscript2
echo cp "$(pwd)"/libraries/tiny-mappings-parser-0.2.2.1.jar >> launchscript2
echo cp "$(pwd)"/libraries/sponge-mixin-0.9.2+mixin.0.8.2.jar >> launchscript2
echo cp "$(pwd)"/libraries/tiny-remapper-0.3.0.70.jar >> launchscript2
echo cp "$(pwd)"/libraries/access-widener-1.0.0.jar >> launchscript2
echo cp "$(pwd)"/libraries/fabric-loader-sat4j-2.3.5.4.jar >> launchscript2
echo cp "$(pwd)"/libraries/jimfs-1.2-fabric.jar >> launchscript2
echo cp "$(pwd)"/libraries/asm-9.1.jar >> launchscript2
echo cp "$(pwd)"/libraries/asm-analysis-9.1.jar >> launchscript2
echo cp "$(pwd)"/libraries/asm-commons-9.1.jar >> launchscript2
echo cp "$(pwd)"/libraries/asm-tree-9.1.jar >> launchscript2
echo cp "$(pwd)"/libraries/asm-util-9.1.jar >> launchscript2
echo cp "$(pwd)"/libraries/intermediary-1.17.jar >> launchscript2
echo cp "$(pwd)"/libraries/fabric-loader-0.11.3.jar >> launchscript2
echo ext "$(pwd)"/libraries/java-objc-bridge-1.0.0-natives-osx.jar >> launchscript2
echo natives NO_NATIVES >> launchscript2
echo launch >> launchscript2
cat launchscript2 | "$(pwd)"/zulu-16.jdk/Contents/Home/bin/java -Dorg.lwjgl.librarypath="$(pwd)"/lwjglnatives -Xdock:icon=icon.png -Xdock:name=AppleSiliconMinecraft -XstartOnFirstThread -Xms409m -Xmx2048m -Duser.language=en -cp "$(pwd)"/NewLaunch.jar:\
"$(pwd)"/libraries/lwjglfat.jar:\
"$(pwd)"/libraries/tiny-mappings-parser-0.2.2.1.jar:\
"$(pwd)"/libraries/sponge-mixin-0.9.2+mixin.0.8.2.jar:\
"$(pwd)"/libraries/tiny-remapper-0.3.0.70.jar:\
"$(pwd)"/libraries/access-widener-1.0.0.jar:\
"$(pwd)"/libraries/fabric-loader-sat4j-2.3.5.4.jar:\
"$(pwd)"/libraries/jimfs-1.2-fabric.jar:\
"$(pwd)"/libraries/asm-9.1.jar:\
"$(pwd)"/libraries/asm-analysis-9.1.jar:\
"$(pwd)"/libraries/asm-commons-9.1.jar:\
"$(pwd)"/libraries/asm-tree-9.1.jar:\
"$(pwd)"/libraries/asm-util-9.1.jar:\
"$(pwd)"/libraries/intermediary-1.17.jar:\
"$(pwd)"/libraries/fabric-loader-0.11.3.jar:\
"$(pwd)"/libraries/blocklist-1.0.5.jar:\
"$(pwd)"/libraries/patchy-2.1.6.jar:\
"$(pwd)"/libraries/oshi-core-5.7.4.jar:\
"$(pwd)"/libraries/jna-5.8.0.jar:\
"$(pwd)"/libraries/jna-platform-5.8.0.jar:\
"$(pwd)"/libraries/slf4j-api-1.8.0-beta4.jar:\
"$(pwd)"/libraries/log4j-slf4j18-impl-2.14.1.jar:\
"$(pwd)"/libraries/icu4j-66.1.jar:\
"$(pwd)"/libraries/javabridge-1.1.23.jar:\
"$(pwd)"/libraries/jopt-simple-5.0.3.jar:\
"$(pwd)"/libraries/netty-all-4.1.25.Final.jar:\
"$(pwd)"/libraries/guava-21.0.jar:\
"$(pwd)"/libraries/commons-lang3-3.5.jar:\
"$(pwd)"/libraries/commons-io-2.5.jar:\
"$(pwd)"/libraries/commons-codec-1.10.jar:\
"$(pwd)"/libraries/jinput-2.0.5.jar:\
"$(pwd)"/libraries/jutils-1.0.0.jar:\
"$(pwd)"/libraries/brigadier-1.0.18.jar:\
"$(pwd)"/libraries/datafixerupper-4.0.26.jar:\
"$(pwd)"/libraries/gson-2.8.0.jar:\
"$(pwd)"/libraries/authlib-2.3.31.jar:\
"$(pwd)"/libraries/commons-compress-1.8.1.jar:\
"$(pwd)"/libraries/httpclient-4.3.3.jar:\
"$(pwd)"/libraries/commons-logging-1.1.3.jar:\
"$(pwd)"/libraries/httpcore-4.3.2.jar:\
"$(pwd)"/libraries/fastutil-8.2.1.jar:\
"$(pwd)"/libraries/log4j-api-2.14.1.jar:\
"$(pwd)"/libraries/log4j-core-2.14.1.jar:\
"$(pwd)"/libraries/text2speech-1.11.3.jar:\
"$(pwd)"/libraries/text2speech-1.11.3.jar:\
"$(pwd)"/libraries/text2speech-1.11.3-natives-linux.jar:\
"$(pwd)"/libraries/text2speech-1.11.3-natives-windows.jar:\
"$(pwd)"/libraries/text2speech-1.11.3-sources.jar:\
"$(pwd)"/libraries/java-objc-bridge-1.0.0.jar:\
"$(pwd)"/libraries/minecraft-1.17-client.jar:\
"$(pwd)"/libraries/java-objc-bridge-1.0.0-natives-osx.jar org.multimc.EntryPoint > mclog 2>&1 &
rm launchscript2
I don’t doubt it may just be an error with my code writing, but I can’t find it so I’m just completely stumped. I’ve updated the main class and checked the JSON and updated to Java 16 etc… Any help would be extremely appreciated.
Thanks. Pyrotex7
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (2 by maintainers)
Top GitHub Comments
Got it! Hilariously, more typos. It’s a wonder what can happen to cause the most annoying problems in coding. I had a couple URLs in the curl command wrong. It still wrote the files, so I thought it worked, it just turned out, the only thing the files would’ve contained would be Page Not Found errors.
Thanks, Pyrotex7
Thanks for the advice, but I just tried something that has me more confused - I just went to the FabricMC maven and downloaded asm-9.1.jar and used that to replace the one already in there, and it stopped complaining about that jar! What’s puzzling, is that the way I got the libraries in the first place was just by downloading them from that same url with a shell a script of curl commands! No idea now… I’ll try some things and post again soon hopefully
Pyrotex7