I'm trying to emulate <https://github.com/JetBrain...
# announcements
s
I'm trying to emulate https://github.com/JetBrains/kotlin-examples/blob/master/maven/hello-world/pom.xml in my own project, but keep encountering
java.lang.ClassNotFoundException: MainKt
(my main class is
src/main/Main.kt
, the package is called
main
. Any suggestions?
c
from the exception it is clearly that the configured class is in the root package, not in
main
. How do you run the application? maven-exec?
<main.class>hello.HelloKt</main.class>
- fully qualified name
s
mvn exec:java
c
well, then
main.class
should be
main.MainKt
not just
MainKt