title: What is the best way to deploy JavaFX application, create JAR and self-contained applications and native installers
body: <p>I'm using IntelliJ IDEA, and I have my JavaFX application ready for deployment.
  The problem is that when I generate the JAR file, it won't run, when I run it in the command line, I get an Exception, FXMLLoadException, although the project is working perfectly in my IDE.</p>
  
  <p>Ant tasks end with errors, after 15 minutes of building, I really don't understand what's the problem exactly.</p>
  
  <p>So my question what are the right steps to deploy a JavaFX application the right way, any tutorial or guide will be welcome.</p>