https://kotlinlang.org logo
#announcements
Title
# announcements
s

settermjd

11/02/2017, 12:15 PM
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

cy

11/02/2017, 12:51 PM
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

settermjd

11/02/2017, 1:01 PM
mvn exec:java
c

cy

11/02/2017, 2:05 PM
well, then
main.class
should be
main.MainKt
not just
MainKt
3 Views