Can't run the jar file - kotlin, maven

Hi, I cloned a repo with kotlin codebase and maven build tool. Did mvn clean install and then java -jar target/<>.SNAPSHOT.jar. However, running the jar file resulted into the following error attached.
Please help.

Exception in thread “main” java.lang.NoClassDefFoundError: kotlin/jvm/internal/Intrinsics
at com..AuthServerKt.main(AuthServer.kt)
Caused by: java.lang.ClassNotFoundException: kotlin.jvm.internal.Intrinsics
at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ```

Your jar file automatically contains JB annotations, but it doesn’t contain the Kotlin stdlib, as it’s assumed that’s provided at the run site. Use the Maven shade plugin to include the Kotlin stdlib if you want your program to be runnable on its own, or use the kotlin command line tool to run your jar with the stdlib already classpath’d in.

still getting the same error.

How are you building your jar and how do you run it? Using the kotlin myJar.jar command should work.

I got it working but had to compile a fat jar using gradle to get it working. I cannot get it work on the intellij/android ide.

Hey guys,

Any update about it?

Tnks