0

I want to play a sound on a my javafx application and to do that I need to create a Media Objet and a MediaPlayer Object. But I can't create them because I can't do the import javafx.scene.media because the media package in my external library is missing. How can I fix that ?

https://i.stack.imgur.com/hTiBR.png

  • You need both the maven dependency for javafx-media and the java platform module system requirement for the javafx.media module OR use a JDK distribution like bellsoft liberica which includes JavaFX. – jewelsea Dec 11 '21 at 15:32

0 Answers0