Ben Madore
10/06/2021, 3:33 PMsrc/main/kotlin/com/foo/Blah.java
src/main/kotlin/com/foo/bar/WebController.kt
WebController instantiates and uses a Blah. at compile time, no issues. when i start the app with gradle bootRun
- at runtime i get:
java.lang.NoClassDefFoundError: com/foo/Blah
i shouldn’t have to do anything special to make sure the java classes are on the classpath, right?Ben Madore
10/06/2021, 3:36 PMsrc/main/java
? This documentation appears to be misleading: https://kotlinlang.org/docs/mixing-java-kotlin-intellij.html#adding-java-source-code-to-an-existing-kotlin-projectThomas
10/06/2021, 4:01 PMBen Madore
10/06/2021, 4:16 PMThomas
10/06/2021, 4:17 PMBen Madore
10/06/2021, 4:17 PM.kt
and .java
in src/main/java
work just fine by default.
.java
in src/main/kotlin
does not.Ben Madore
10/06/2021, 4:17 PMsrc/main/java
Thomas
10/06/2021, 4:18 PM