Kotlin Lang: First Kotlin Hello Word using CLI

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

Popular posts from this blog

Numpang Kerja Remote dari Bandung Creative Hub

Debugging PHP Web dengan XDebug di Intellij IDEA (PHP STORM)

Numpang Kerja Remote dari Bandung Digital Valley