i m not getting how to play a mp3 file using applet? i m using AudioClip A = getAudioClip(x); where x is --> URL x=C:\'Users\'gourav\'java_pr; its just a try! i donot know how to use this. it is showing error. tell me how to use audioclip interface?
very well possible.
playing .mp3 files is not standard supported in Java.
if you want to play .mp3 files, you can use (for instance) JMF (Java Media Framework), or, what I would recommend, since it's quite easy and all you need to do is add a single .jar file to your classpath, the jLayer library which you can find here.