title: Playing MP3 using Java Sound API
body: <p>Can you please suggest that how can i write a <em>piece</em> that plays a song.?</p>
  
  <p>I tried the following snippet but i get the this exception:<img src="https://i.stack.imgur.com/MLEzR.jpg" alt="enter image description here"></p>
  
  <pre><code>import sun.audio.*;
  import java.io.*;
  
  class tester {
   public static void main(String args[]) throws Exception {
    InputStream in=new FileInputStream("tester.mp3");
    AudioStream as=new AudioStream(in);
    AudioPlayer.player.start(as);
   }
  }
  </code></pre>