Kotlin/Native FAQ How do I run my program? Define a top-level function fun main(args: Array) or just fun main() if you are not interested in passed arguments, please ensure it's not in a package.