Install SDKMAN
https://undebugable.blogspot.com/2021/06/instalasi-sdkman-di-ubuntu.html
Install Kotlin command-line compiler
$ sdk list kotlin
$ sdk install kotlin 1.5.10
Buat File hello.kt
fun main() {
println("Hello, World!")
}
Compile File hello.kt
Compile kode aplikasi hello world diatas dengan Kotlin compiler:
kotlinc hello.kt -include-runtime -d hello.jar
java -jar hello.jar
Hasil Eksekusi jar
Comments
Post a Comment