how to run compiled class file in Kotlin?

后端 未结 5 664
花落未央
花落未央 2020-12-01 16:03

Jetbrains provides some documentation but I can\'t find how to run compiled class file of Kotlin.

hello.kt:

fun main(args : Array) {
           


        
5条回答
  •  囚心锁ツ
    2020-12-01 16:35

    Update: In the newer versions of the Kotlin IDE plugin, you can use context Run-actions in the Editors pop-up menu.

    If you are in the IDE, right-click the editor and choose "Run namespace" Otherwise, compile and run the *.namespace class as a normal Java class.

提交回复
热议问题