Compiling Mixed Java and Kotlin Files on the Command Line

This is still correct. The only thing that changed is:

Currently it’s not possible to provide paths to individual .java files to be loaded by the Kotlin compiler

It’s now possible to pass individual files to the Kotlin compiler, e.g. kotlinc kotlinSource.kt JavaSource.java

1 Like