You need to first install GraalVM, and then set your PATH so that you get the GraalVM binaries
Then you need the kotlin compiler toolchain. Easiest with sdkman Create a Kotlin file and add a simple program
$> cat src/main.kt
fun main() {
println("hello")
}