Kaj Koivunen
03/14/2024, 2:52 PMError: Could not find or load main class ktortest-all.jar
Casey Brooks
03/14/2024, 4:09 PMbuild.gradle.kts
file.
For example, if your application has your fun main()
in a file at src/main/com/example/application.kt
, the class name will be com.example.ApplicationKt
https://ktor.io/docs/fatjar.html#buildFernando Sanchez (Perraco Labs)
03/14/2024, 4:19 PMapplication {
mainClass.set("your_package.ApplicationKt")
}
where ApplicationKt
is the file where the main
is defined