
In playing an audio file we have to take one method getAudioClip(getCodeBase(), "TestSnd.wav") inside that getCodeBase() is there which generate an object of URL class .it generates an error.please tell me how to solve this problem and also tell me where i should pass my audio clip path

Please visit the following link:
http://www.roseindia.net/java/example/java/applet/PlaySoundApplet.shtml
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.