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?