
Crash in 1.21.1 Dev Environment - java.lang.NoClassDefFoundError: com/moandjiezana/toml/Toml
ryankshah opened this issue ยท 2 comments
Error is as follows using implementation "maven.modrinth:cameraoverhaul:2.0.0-neoforge+mc.1.20.6-1.21.1"
to add this dependency in a mod dev environment to test compat.
java.lang.NoClassDefFoundError: com/moandjiezana/toml/Toml
at knot/mirsario.cameraoverhaul.configuration.Configuration.<clinit>(Configuration.java:24) ~[cameraoverhaul-2.0.0-fabric+mc.1.20.6-1.21.1.jar:?]
at knot/mirsario.cameraoverhaul.CameraSystem.onCameraUpdate(CameraSystem.java:28) ~[cameraoverhaul-2.0.0-fabric+mc.1.20.6-1.21.1.jar:?]
at knot/net.minecraft.client.Camera.handler$zlp000$cameraoverhaul$onCameraUpdate(Camera.java:1067) ~[minecraft-merged-cc97ee313b-1.21.1-loom.mappings.1_21_1.layered+hash.288375958-v2.jar:?]
at knot/net.minecraft.client.Camera.setup(Camera.java:70) ~[minecraft-merged-cc97ee313b-1.21.1-loom.mappings.1_21_1.layered+hash.288375958-v2.jar:?]
at knot/net.minecraft.client.renderer.GameRenderer.renderLevel(GameRenderer.java:1052) ~[minecraft-merged-cc97ee313b-1.21.1-loom.mappings.1_21_1.layered+hash.288375958-v2.jar:?]
at knot/net.minecraft.client.renderer.GameRenderer.render(GameRenderer.java:850) ~[minecraft-merged-cc97ee313b-1.21.1-loom.mappings.1_21_1.layered+hash.288375958-v2.jar:?]
at knot/net.minecraft.client.Minecraft.runTick(Minecraft.java:1285) ~[minecraft-merged-cc97ee313b-1.21.1-loom.mappings.1_21_1.layered+hash.288375958-v2.jar:?]
at knot/net.minecraft.client.Minecraft.run(Minecraft.java:882) [minecraft-merged-cc97ee313b-1.21.1-loom.mappings.1_21_1.layered+hash.288375958-v2.jar:?]
at knot/net.minecraft.client.main.Main.main(Main.java:256) [minecraft-merged-cc97ee313b-1.21.1-loom.mappings.1_21_1.layered+hash.288375958-v2.jar:?]
at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:480) [fabric-loader-0.16.9.jar:?]
at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:74) [fabric-loader-0.16.9.jar:?]
at net.fabricmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:23) [fabric-loader-0.16.9.jar:?]
at net.fabricmc.devlaunchinjector.Main.main(Main.java:86) [dev-launch-injector-0.2.1+build.8.jar:?]
Caused by: java.lang.ClassNotFoundException: com.moandjiezana.toml.Toml
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641) ~[?:?]
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:526) ~[?:?]
at net.fabricmc.loader.impl.launch.knot.KnotClassDelegate.loadClass(KnotClassDelegate.java:226) ~[fabric-loader-0.16.9.jar:?]
at net.fabricmc.loader.impl.launch.knot.KnotClassLoader.loadClass(KnotClassLoader.java:119) ~[fabric-loader-0.16.9.jar:?]
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:526) ~[?:?]
... 13 more
I'm not sure how to resolve this on my side, the library in question is include
d with the mod JAR here:
Minecraft-CameraOverhaul/build.gradle.kts
Line 90 in e97d4dc