title: java.io.IOException: mark/reset not supported
body: <pre><code>try {
      //String location = dir1.getCanonicalPath()+"\\app_yamb_test1\\mySound.au";
      //displayMessage(location);
      AudioInputStream audio2 = AudioSystem.getAudioInputStream(getClass().getResourceAsStream("mySound.au"));
      Clip clip2 = AudioSystem.getClip();
      clip2.open(audio2);
      clip2.start();
  } catch (UnsupportedAudioFileException uae) {
      System.out.println(uae);
      JOptionPane.showMessageDialog(null, uae.toString());
  } catch (IOException ioe) {
      System.out.println("Couldn't find it");
      JOptionPane.showMessageDialog(null, ioe.toString());
  } catch (LineUnavailableException lua) {
      System.out.println(lua);
      JOptionPane.showMessageDialog(null, lua.toString());
  }
  </code></pre>
  
  <p>This code works fine when I run the application from netbeans. The sound plays and there are no exceptions. However, when I run it from the dist folder, the sound does not play and I get the <code>java.io.IOException: mark/reset not supported</code> in my message dialog.</p>
  
  <p>How can I fix this?</p>