title: playing .mp3 file in java using notepad
body: <p>I know this is a repeat question.
  check original one <a href="https://stackoverflow.com/questions/6045384/playing-mp3-and-wav-in-java">here</a> or <a href="https://stackoverflow.com/questions/10888367/compiling-and-running-with-javafx-2-1">here</a>.</p>
  
  <p>So my code is just the copy paste  :</p>
  
  <pre><code>import javafx.scene.media.*;
  
  class Gui {
    public static void main(String[] args) {
      try{
          Media hit = new Media("skin.mp3");
          MediaPlayer mediaPlayer = new MediaPlayer(hit);
          mediaPlayer.play();
      }catch(Exception e){
          e.printStackTrace();
      }
    }
  }
  </code></pre>
  
  <p>The exception which i'm getting is : </p>
  
  <pre><code>java.lang.IllegalArgumentException: uri.getScheme() == null!
          at com.sun.media.jfxmedia.locator.Locator.&lt;init&gt;(Locator.java:217)
          at javafx.scene.media.Media.&lt;init&gt;(Media.java:364)
          at Gui.main(gui.java:6)
  </code></pre>
  
  <p>I'm compiling &amp; running it correctly i.e. by including the <code>jfxrt.jar</code> file in classpath </p>
  
  <p>Note: I'm just using notepad instead of any IDE.</p>
  
  <p>So can anyone tell me the reason of <code>IllegalArgumentException</code></p>
  
  <p>Thankx</p>
  
  <p><strong>UPDATE</strong> : By using <code>file://e:/skin.mp3</code> it worked fine but left me with another exception :</p>
  
  <pre><code>MediaException: MEDIA_INACCESSIBLE : e
          at javafx.scene.media.Media.&lt;init&gt;(Unknown Source)
          at Gui.main(gui.java:6)
  </code></pre>
  
  <p>So if you can put some light on this exception. </p>
  
  <p>By the way i've checked the song, its not corrupt because it is playing nicely in vlc.</p>