title: JavaFX WARNING: Unsupported JavaFX configuration: classes were loaded from 'unnamed module @...'
body: <p>I just downloaded JavaFX and set it up, I have done nothing else. I ran the sample code and this was the warning that popped up, although everything compiled. I'm using IntelliJ.</p>
  <p>This is in Main.java:</p>
  <pre><code>package sample;
  
  import javafx.application.Application;
  import javafx.fxml.FXMLLoader;
  import javafx.scene.Parent;
  import javafx.scene.Scene;
  import javafx.stage.Stage;
  
  public class Main extends Application {
  
      @Override
      public void start(Stage primaryStage) throws Exception{
          Parent root = FXMLLoader.load(getClass().getResource(&quot;sample.fxml&quot;));
          primaryStage.setTitle(&quot;Hello World&quot;);
          primaryStage.setScene(new Scene(root, 300, 275));
          primaryStage.show();
      }
  
  
      public static void main(String[] args) {
          launch(args);
      }
  }
  </code></pre>
  <p>This is in sample.fxml:</p>
  <pre><code>&lt;?import javafx.geometry.Insets?&gt;
  &lt;?import javafx.scene.layout.GridPane?&gt;
  
  &lt;?import javafx.scene.control.Button?&gt;
  &lt;?import javafx.scene.control.Label?&gt;
  &lt;GridPane fx:controller=&quot;sample.Controller&quot;
            xmlns:fx=&quot;http://javafx.com/fxml&quot; alignment=&quot;center&quot; hgap=&quot;10&quot; vgap=&quot;10&quot;&gt;
  &lt;/GridPane&gt;
  </code></pre>
  <p>When running, everything compiles, the window pops up, but I get the warning as stated in the title.</p>
  <p>I never used JavaFX before so I'm unsure of where to locate this module.</p>