Skip to content

Code samples from the "Kotlin in Action" book

Notifications You must be signed in to change notification settings

feixiao/kotlin-in-action

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kotlin 实战源码

安装 kotlin 工具包

Ubuntu 20.04

sudo snap install --classic kotlin
kotlinc -help

OSX

brew install kotlin

编译和运行

PlayGroud
本地编译
#-d 选项表示生成的类文件的输出路径,可以是目录,也可以是一个 .jar 文件。
#-include-runtime 选项通过在其中包含 Kotlin 运行时库,使得生成的 .jar 文件中自包含运行时库且可运行。

kotlinc hello.kt -include-runtime -d hello.jar
java -jar hello.jar

About

Code samples from the "Kotlin in Action" book

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Kotlin 97.5%
  • Java 2.3%
  • Shell 0.2%