|
First, we have to compile the program with |
$ kotlinc main.kt -include-runtime -d main.jar
|
|
The compiler will generate a |
$ ls
main.kt Main.jar
|
|
The resulting |
$ java -jar Main.jar
Hello, world!
|