https://kotlinlang.org logo
#ktor
Title
# ktor
d

Deepak Gahlot

03/17/2024, 9:27 AM
error -
Copy code
Error: A JNI error has occurred, please check your installation and try again
2024-03-17T09:17:09.316598+00:00 app[web.1]: Exception in thread "main" java.lang.NoClassDefFoundError: io/ktor/server/application/Application
If any other information is require please let me know
c

Chrimaeon

03/17/2024, 9:53 AM
You should run the „fat jar“ created by the shadowjar plug-in. There should be a jar file in the build folder ending in
-all.jar
. Otherwise the jar file only contains your code and when running the Java command you need to provide the classpath to the other libraries you use.
2 Views