title: IntelliJ IDEA 2018.2, openjdk 11 and openjfx 11 (no maven, not modular project) : Module javafx.controls not found
body: <p>I just created a new JavaFX project in intelliJ with an openjdk 11 and I've downloaded the last openjfx library on their website. </p>
  
  <p>Here is what I did : </p>
  
  <p>I've added to Run/Debug VM options : <code>--module-path %PATH_TO_FX% --add-modules=javafx.controls,javafx.fxml</code>
  <a href="https://i.stack.imgur.com/JAbQt.png" rel="noreferrer">VM Options</a></p>
  
  <p>I've added a new variable env PATH_TO_FX : <code>PATH_TO_FX=%programfiles%\Java\javafx-sdk-11\lib</code></p>
  
  <p>So it compiles good but it fails at runtime :</p>
  
  <pre><code>Error occurred during initialization of boot layer
  java.lang.module.FindException: Module javafx.controls not found
  </code></pre>
  
  <p>Does anyone know what am I missing here ?</p>
  
  <p>PS : I've followed this link <a href="https://openjfx.io/openjfx-docs/#install-javafx" rel="noreferrer">https://openjfx.io/openjfx-docs/#install-javafx</a></p>
  
  <p>EDIT : </p>
  
  <p>Should I have onpenjfx libraries here ? <a href="https://i.stack.imgur.com/bNfJB.png" rel="noreferrer">classpath</a></p>