I want to export my kotlin program to a runnable file (be it .jar, .exe, whatever) so that other people will be able to use my programs, however I can't figure out how to do this. I'm using IntelliJ Community edition
My only code is a file called Main.kt containing:
fun main() {
println("Hello World")
}
I understand I need to set up an artifact, but I'm not sure what to put in the artifact settings, and when I build it as shown here, the .jar file doesn't output anything.
What am I doing wrong?
Edit: After running java -jar "Simple Kotlin Test_jar.jar"
it comes back with no main manifest attribute, in Simple Kotlin Test_jar.jar