I am on a Linux machine and am trying to get a javaFX app to run but I am stuck. I keep getting the error in the title. IntelliJ is running the following command before the error:
/usr/lib/jvm/java-17-openjdk-amd64/bin/java -javaagent:/opt/IntelliJ/lib/idea_rt.jar=38753:/opt/IntelliJ/bin -Dfile.encoding=UTF-8 -classpath /home/j3rk/IdeaProjects/C195/out/production/C195:/home/j3rk/.m2/repository/mysql/mysql-connector-java/8.0.27/mysql-connector-java-8.0.27.jar:/home/j3rk/.m2/repository/com/google/protobuf/protobuf-java/3.11.4/protobuf-java-3.11.4.jar:/home/j3rk/.m2/repository/org/openjfx/javafx-base/12-ea+6/javafx-base-12-ea+6.jar:/home/j3rk/.m2/repository/org/openjfx/javafx-base/12-ea+6/javafx-base-12-ea+6-linux.jar:/home/j3rk/.m2/repository/org/openjfx/javafx-controls/11/javafx-controls-11.jar:/home/j3rk/.m2/repository/org/openjfx/javafx-controls/11/javafx-controls-11-linux.jar:/home/j3rk/.m2/repository/org/openjfx/javafx-graphics/11/javafx-graphics-11.jar:/home/j3rk/.m2/repository/org/openjfx/javafx-graphics/11/javafx-graphics-11-linux.jar:/home/j3rk/.m2/repository/org/openjfx/javafx-base/11/javafx-base-11.jar:/home/j3rk/.m2/repository/org/openjfx/javafx-base/11/javafx-base-11-linux.jar:/home/j3rk/.m2/repository/org/openjfx/javafx-fxml/11/javafx-fxml-11.jar:/home/j3rk/.m2/repository/org/openjfx/javafx-fxml/11/javafx-fxml-11-linux.jar sample.Main
As you can see, I have tried adding the openjfx dependencies via maven and it still does not work.
I have tried the solution found in: Error: JavaFX runtime components are missing - JavaFX 11 and OpenJDK 11 and Eclipse IDE
Two other javaFX projects are loading fine on the same machine, but for some reason, this particular project keeps giving me the same error no matter what I try.
Screenshot of my modules/dependencies
Let me know if you need more information. Any help would be appreciated.