Kotlin 2 · Tooling

Compile and run a file

Compile to a jar and run it with the Kotlin runtime included.

kotlinc hello.kt -include-runtime -d hello.jar && java -jar hello.jar

Official Kotlin 2 documentation

More tooling commands

All tooling commands · Kotlin 2 cheatsheet

Was this page helpful?