title: Module not found: javafx.controls
body: <p>I have downloaded JavaFX SDK, unpacked it and set a <code>PATH_TO_FX</code> system variable, following <a href="https://openjfx.io/openjfx-docs/#install-javafx" rel="noreferrer">this instructions</a>. I used following code example: </p>
  
  <pre><code>import javafx.application.Application;
  import javafx.scene.Scene;
  import javafx.scene.control.Label;
  import javafx.scene.layout.StackPane;
  import javafx.stage.Stage;
  
  public class HelloFX extends Application {
  
      @Override
      public void start(Stage stage) {
          String javaVersion = System.getProperty("java.version");
          String javafxVersion = System.getProperty("javafx.version");
          Label l = new Label("Hello, JavaFX " + javafxVersion + ", running on Java " + javaVersion + ".");
          Scene scene = new Scene(new StackPane(l), 640, 480);
          stage.setScene(scene);
          stage.show();
      }
  
      public static void main(String[] args) {
          launch();
      }
  }
  </code></pre>
  
  <p>Tried to compile it with the suggested pattern:</p>
  
  <p><strong>javac --module-path $PATH_TO_FX --add-modules javafx.controls HelloFX.java</strong></p>
  
  <p>But compiler throws an error: module not found: javafx.controls. 
  Windows 10. Java and JavaFX versions is 11.0.1</p>
  
  <p>Again: I DID ADD the line <strong>--add-modules javafx.controls</strong></p>