Change you class for an object and add platformStatic to your main method
object Main {
platformStatic fun main(args: Array<String>){
println("Hello kotlin")
}
}
or put your main function outside the class
fun main(args: Array<String>){
println("Hello kotlin")
}