Skip to content

Instantly share code, notes, and snippets.

@bassaer
Last active May 5, 2018 12:07
Show Gist options
  • Save bassaer/00f9d20c9bb279faf48f55cbb2af2a92 to your computer and use it in GitHub Desktop.
Save bassaer/00f9d20c9bb279faf48f55cbb2af2a92 to your computer and use it in GitHub Desktop.
❯ brew update
❯ brew install kotlin
❯ cat hello.kt
fun main(args: Array<String>) {
println("Hello, World!")
}
❯ kotlinc hello.kt -include-runtime -d hello.jar
❯ ll
total 1712
-rw-r--r-- 1 nakayama staff 849K 5 5 20:58 hello.jar
-rw-r--r-- 1 nakayama staff 64B 5 5 20:57 hello.kt
❯ java -jar hello.jar
Hello, World!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment