Last active
July 20, 2020 08:58
-
-
Save farshed/91a57fdd4308a1ff142176f3ea4d9f9d to your computer and use it in GitHub Desktop.
Sublime Text 3 build system config to compile and run Kotlin programs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"cmd": ["kotlinc $file -include-runtime -d $file_base_name.jar && java -jar $file_base_name.jar"], | |
"selector": "source.kotlin", | |
"file_patterns": ["*.kt"], | |
"shell": true | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You need to have Kotlin compiler installed and its path set in your environment variables.
Follow the instructions here: https://kotlinlang.org/docs/tutorials/command-line.html