title: Cannot open Jar file created from JavaFX and Intellij
body: <p>I have a JavaFX project created on Intellij Community edition and JavaFX SDK 11.0.2. It works perfectly when I click the green run button on Intellij and the program opens up.
  I was attempting to export it to a jar file and try to double click on it but nothing happens. I tried to open it on command line by doing <code>java -jar myapp.jar</code> but it says &quot;Error: JavaFX runtime components are missing, and are required to run this application&quot;.
  This is how I created the jar file from the project.</p>
  <ol>
  <li>File -&gt; Project Structure -&gt; Artifacts -&gt; click on the plus sign (+) -&gt; Jar -&gt; From modules with dependencies.</li>
  <li>Select the main class and OK. Followed by Clicking on the + sign and adding all files from the javafx bin folder to the File ( all the dll files).</li>
  <li>Go to Build -&gt; Build artifacts -&gt; Build.
  This generates the jar file but shows the above error.</li>
  </ol>