title: Music Player in Java?
body: <p>I have Code Which plays a mp3 file java. </p>
  
  <p>The issue that I encounter was that, </p>
  
  <p>--> The audio output was only heard when program ran under the debug mode with breakpoints, but not under Run mode. </p>
  
  <p>What could be the possible way counter this issue? I have attached the code for better understanding.    </p>
  
  <pre><code> FileInputStream mp3_file=new FileInputStream("xyz.mp3");
   Player mp3=new Player(mp3_file);
   mp3.play();
   System.out.println("Over");
  </code></pre>