error - ``` Error: A JNI error has occurred, pleas...
# ktor
d
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
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.