'2017/10/14'에 해당되는 글 1건

  1. 2017.10.14 Mac에서 Kotlin 설치하기
Coding/JVM 삽질기2017. 10. 14. 02:13
1. sdkman 설치

curl -s "https://get.sdkman.io" | bash
source "$HOME/.sdkman/bin/sdkman-init.sh”

2. Java와 Kotlin 설치 
sdk install java
sdk install kotlin

3. Kotlin 으로 helloworld.kt  만들기

fun main(args: Array<String>) { 
    println("Hello, World!!”)
}


4. Compile helloworld.kt
kotlinc helloworld.kt -include-runtime -d helloworld.jar

5. 실행하기
java -jar helloworld.jar

* Reference

http://sdkman.io/install.html

https://kotlinlang.org/docs/tutorials/command-line.html



'Coding > JVM 삽질기' 카테고리의 다른 글

[groovy] 50!  (0) 2016.09.24
Groovy 설치( Mac )  (0) 2014.11.11
Pocket PC를 위한 JVM  (0) 2005.09.28
Posted by chobocho