Hi, i would really appreciate any help on this one. I am trying to get my java game created with the ACM package to play sound effects. I have all the .wav files i need and added to the package but have tried everything to play them in the program but nothing seems to work.
I have tried for example :

AudioClip hit = new AudioClip("hit.wav") ;
hit.play();

AudioClip hit = MediaTools.loadAudioClip("hit.wav");
hit.play();

AudioClip = getAudioClip("hit.wav");



does anyone have any idea what to do? thanks