Ben Chuanlong Du's Blog

It is never too late to learn.

Ways to To Run a Kotlin JAR

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

If you generate a uber JAR, then you can directly using the java command to run the JAR file without specifying additional Kotlin runtime/stdlib JAR.

https://stackoverflow.com/questions/9355690/how-to-run-compiled-class-file-in-kotlin/26402542#26402542

https://stackoverflow.com/questions/14733566/how-to-run-kotlin-class-from-the-command-line

Comments