Problem generating artifacts for JavaFX project

Hey !

While I was playing around with Kotlin I wondered if I can generat a jar for a JavaFX app written in Kotlin. So I wrote a simple app and it worked on IDEA, but when I decided to generate the jar it never worked! It says that it can’t find or load the main class.

I guess the problem is that when it asked for the main class in the project settings I entered the application class (which doesn’t contain the main method, as it has to be at the package level) while in pure Java I could just put the main method inside the application class and it would work perfectly. So how should I get around this?

The same question here: http://stackoverflow.com/questions/26010547/generating-jar-for-javafx-project-in-kotlin/26018049?noredirect=1#comment40756292_26018049

let’s keep it to one place