我想编译并开始。
package korat
import tensorflow.TF_Version
fun main(args: Array<String>) {
print(TF_Version())
}
当我运行命令时:
kotlinc-native /home/fnasibov/IdeaProjects/Korat/src/linuxMain/kotlin/korat/Test.kt -l tensorflow
它返回一个错误:
error: could not find 'main' in '<root>' package.
我怎样才能解决这个问题?
更新 1
添加后-e korat.main
有错误
error: compilation failed: Provider "jar" not found
*Source files: Test.kt
*Compiler version info: Konan: 0.9.3 / Kotlin: 1.3.0
*Output kind: PROGRAM
exception: java.nio.file.ProviderNotFoundException: Provider "jar" not found