title: How to open JavaFX .jar file with JDK 11?
body: <p>I created a JavaFX project in IntelliJ.
  I can run project in IntelliJ. I added below code in Configurations):</p>
  
  <pre><code>--module-path ${PATH_TO_FX} --add-modules=javafx.controls,javafx.fxml
  </code></pre>
  
  <p>But the output .jar file of project (made with Artifects) doesn't run. I tested these commands, but didn't get any chance:</p>
  
  <pre><code>java  --module-path %PATH_TO_FX% --add-modules javafx.controls,javafx.fxml -jar Timer.jar
  java  --module-path %PATH_TO_FX% --add-modules javafx.controls  Timer.jar
  </code></pre>
  
  <p>Last error log of command line:</p>
  
  <pre><code>Error: Could not find or load main class Files\Java\javafx-sdk-11.0.1\lib
  Caused by: java.lang.ClassNotFoundException: Files\Java\javafx-sdk-11.0.1\lib
  </code></pre>
  
  <p>p.s: I could run .jar file of this project when build on JDK-10</p>
  
  <p><strong>EDIT</strong>:</p>
  
  <p>I downloaded JavaFX and added it's lib folder to System Environments.
  for adding JavaFX to project I did this process:
  Project Structure > Libraries > add > Java > JavaFxPath/lib</p>
  
  <p>Then I created Artifect for output jar file in this process:
  Project Structure > Artifects > Add > JAR > From Modules with dependencies > main Class : main.Main.</p>