title: music player "file not found" exception?
body: <p>I'm try to add a soundtrack to a simple little java game, and I've researched how to do it to the extent that I have code that compiles. However, when I run it, I get a FileNotFound exception. I'm using Eclipse and my wav file is in the same directory as the .class files. </p>
  
  <p>Here's my exception:</p>
  
  <blockquote>
    <p>java.io.FileNotFoundException: bach.wav (No such file or directory)</p>
  </blockquote>
  
  <p>And my code for the music player:</p>
  
  <pre><code>public static void play()
  {
    try
    {
        Clip clip = AudioSystem.getClip();
        clip.open(AudioSystem.getAudioInputStream(new File("bach.wav")));
        clip.start();
    }
    catch (Exception exc)
    {
        exc.printStackTrace(System.out);
    }
   }
  </code></pre>