Error: JavaFX runtime components are missing, and are required to run this application with JDK 11 : <p>I'm trying to run the sample JavaFX project using IntelliJ but it fails with the exception :</p>

<pre><code>Error: JavaFX runtime components are missing, and are required to run this application
</code></pre>

<p>I have downloaded JDK 11 here : <a href="http://jdk.java.net/11/" rel="noreferrer">http://jdk.java.net/11/</a>
I have downloaded OpenJFX here : <a href="http://jdk.java.net/openjfx/" rel="noreferrer">http://jdk.java.net/openjfx/</a>
I'm using : IntelliJ IDEA 2018.2 (Community Edition)
Build #IC-182.3684.40, built on July 17, 2018
JRE: 1.8.0_152-release-1248-b8 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Windows 10 10.0</p>

<p>I have created a new JavaFX project in IntelliJ using JDK 11. My JavaFX classes were not known so I have added the OpenJFX library by doing :</p>

<ul>
<li>File -> Project Structure -> Modules -> + -> Library -> Java</li>
</ul>

<p>I have the OpenJFX added with the 8 jars below "classes" and also the folders below "Sources" and the path to the bin folder under "Native Library Locations".</p>

<p>When I'm building the project, it's good, but impossible to run it. </p>

<p>What am I doing wrong?</p>
