-
-
Save zeebo/b61e11d7c03302614df5337d175f7a74 to your computer and use it in GitHub Desktop.
Kotlin Starter
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
fun main(args: Array<String>) { | |
println("hello world") | |
} |
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
all: | |
/usr/local/kotlinc/bin/kotlinc main.kt -include-runtime -d main.jar | |
.PHONY: all |
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
#!/bin/bash | |
exec java -jar main.jar |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Sadly, one has to hardcode the path to kotlinc in the Makefile due to a bug in our environment. This bug should be fixed shortly, but until then, this should work, and I was able to solve a problem with this.