1

I am just started to learn kotlin from the official doc

1.created a file named sample.kt with the following

fun main(args: Array<String>){  
    println("test")
}
  1. In order to execute

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

But I am getting an error like this

no main manifest attribute, in sample.jar

I found similar issues related to this but I can't find anything related to kotlin all of them related to java

shellakkshellu
  • 4,908
  • 15
  • 59
  • 110

0 Answers0