title: Unsupported JavaFX configuration: classes were loaded from 'unnamed module' with Maven
body: <p>I'm setting up a JavaFX project with Maven for the first time, and followed the steps exactly as on openjfx's website. All I have done so far is replace the default FXML files with my own, yet I keep getting this error.</p>
  <p>What's strange, however, is that my FXML files still load. My project runs, but I still get the warning. I've never seen this error before on my last project, which didn't use Maven.</p>
  <p>Here is my relevant code:</p>
  <pre><code>public class App extends Application {
  
      public static void main(String[] args) {
          launch(args);
      }
  
      @Override
      public void start(Stage stage) throws Exception{
  
          Parent root =
                  FXMLLoader.load(getClass().getResource(
                          &quot;proj2.fxml&quot;));
          stage.setTitle(&quot;proj2&quot;);
          stage.setScene(new Scene(root, 500, 500));
          stage.show();
      }
  }
  </code></pre>
  <p>My module-info folder:</p>
  <pre><code>module org.proj2 {
      requires javafx.controls;
      requires javafx.fxml;
  
  
      opens org.proj2 to javafx.fxml;
      exports org.proj2;
  }
  </code></pre>
  <p>And everything else was from a standard, modular Maven project setup, or at least what was described on openjfx's site. And my FXML files are in the resources folder as given in the setup.</p>
  <p>Should I just ignore the warning? How can I get rid of it? I'm aware I don't have much information to go off of so I'll include any other files in my post if necessary.</p>