I am trying to play a .wav file everytime mouse is pressed down, program starts just fine but when I click on the sprite I get an error, does anyone know whats the problem? I am using IntelliJ, SDK 15
This is the part where I am trying to play the sound
private void onClick() {
state = 1;
Game.lowersc();
AudioClip audioClip = new AudioClip(Paths.get("src/space.wav").toUri().toString());
audioClip.play(50);
}
I get this error:
class com.sun.media.jfxmediaimpl.NativeMediaManager (in unnamed module @0x3460c88d) cannot access class com.sun.glass.utils.NativeLibLoader (in module javafx.graphics) because module javafx.graphics does not export com.sun.glass.utils to unnamed module @0x3460c88d