Kotlin build on Mac

2023. 2. 27. 12:05Programming/JAVA, C++, Go, Rust

    목차
반응형

1. install

brew install kotlin

2. compile

test.kt

fun main() {
    println("test");
}
kotlinc-jvm test.kt -include-runtime -d test.jar

3. execute

java -jar test.jar
반응형