title: Error setting up JavaFX on NetBeans despite VM options
body: <p>I was following <a href="https://openjfx.io/openjfx-docs/#IDE-NetBeans" rel="nofollow noreferrer">this</a> tutorial to set up <code>JavaFX</code> on the <code>Apache NetBeans IDE</code>. I created the library as instructed and created the <code>Controller.java</code> and <code>FXML</code> files (literally just copy/pasted from the examples, along with the <code>Main.java</code> and <code>HelloFX.java</code> files; I wrote nothing of the code itself).</p>
  
  <p>I tried the solution on step 5 for the <code>JavaFX runtime components are missing, and are required to run this application</code> error, but it just makes a new error pop up: <code>java.lang.module.FindException: Module javafx.controls not found</code>.</p>
  
  <p>The directory the components are on is <code>D:\Programas\javafx-sdk-13.0.2\lib</code>, which I supplied as instructed (<code>--module-path "D:\Programas\javafx-sdk-13.0.2\lib" --add-modules javafx.controls,javafx.fxml</code>). I also tried setting an environment variable as instructed <a href="https://openjfx.io/openjfx-docs/#install-javafx" rel="nofollow noreferrer">here</a> and using that instead (<code>--module-path $PATH_TO_FX$ --add-modules javafx.controls,javafx.fxml</code>), to no avail.</p>
  
  <p>I searched for solutions for a long time, but the questions either lack answers, or I just find the same tutorials over and over again, often for old versions of the <code>Java SDK</code> and/or <code>NetBeans IDE</code>.</p>
  
  <p>I'm new to both <code>JavaFX</code> (I was learning <code>Swing</code> when I found out it's getting the boot) and the <code>NetBeans IDE</code> (I'm used to <code>Eclipse</code>), so I'm completely in the dark here.</p>
  
  <p>EDIT: Added screenshot as requested. <a href="https://i.stack.imgur.com/CvJOY.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/CvJOY.png" alt="Screenshot showing the location and VM arguments"></a></p>