java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
at engine.launcher.AppGameProvider.launch(AppGameProvider.kt:102)
at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:74)
at engine.launcher.AppLoader.main(AppLoader.kt:11)
Caused by: java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at engine.launcher.AppGameProvider.launch(AppGameProvider.kt:100)
... 2 more
Caused by: java.lang.NoClassDefFoundError: kotlin/jvm/internal/Intrinsics
at engine.runtime.MainKt.main(Main.kt)
... 7 more
Caused by: java.lang.reflect.InvocationTargetException
I tried adding
implementation(kotlin("stdlib"))
in my
dependencies
block, but even in a shadowJar it fails to find the classes for some reason.
How would I go about solving this?
c
Chris Lee
06/13/2023, 7:52 PM
this looks like a runtime error, not a build-time error? How is this related to Gradle?
m
martmists
06/13/2023, 8:09 PM
Because I'm using gradle to bundle all dependencies
c
Chris Lee
06/13/2023, 8:10 PM
in that case you’ll need to clarify the context for this. A minimal Gradle reproducer is often helpful. As it stands there’s too little context to be able to assist.