kotlin命令行编译器

我如何使用js命令行编译器?

fun main(args: Array<String>): Unit { println("Hello world!") } E:\kotlinc\bin>kotlinc-js -output test -sourceFiles test.kt ERROR: E:\kotlinc\bin\test.kt: (4, 5) Unresolved reference: println exec() finished with COMPILATION_ERROR return code 

在IDE中,我也无法让js编译工作。 有没有最新的IntelliJ IDEA 12入门指南?

您需要指定库(kotlin-jslib.jar)的路径,请使用-libraryFiles命令行选项