Can not work with MediaPlayer class, javafx.media is not found
Note: This answer applies to other JavaFX modules such as fxml and web, as well. javafx.media is a module, you need to require it in your module-info.java like you do for javafx.controls and javafx.fxml. module org.project { requires javafx.controls; requires javafx.fxml; requires javafx.media; opens org.project to javafx.fxml; exports org.project; } There may be other issues, … Read more