title: javafx 2 MediaException: MEDIA_UNAVAILABLE won't load file
body: <p>I'm trying to run an flv file in javafx2. My code is the following:</p>
  
  <pre><code>Media media = new Media("file:///C:/Users/Darren/workspace/player/src/player/football.flv");
  MediaPlayer player = new MediaPlayer(media);
  MediaView view = new MediaView(player);
  
  root.getChildren().add(view);
  Scene scene = new Scene(root, 400, 400, Color.BLACK);
  stage.setScene(scene);
  stage.show();
  
  player.play();
  </code></pre>
  
  <p>I get the following error:</p>
  
  <pre class="lang-none prettyprint-override"><code>Caused by: MediaException: MEDIA_UNAVAILABLE : C:\Users\Darren\workspace\player\src\player\football.flv (The system cannot find the file specified)
  </code></pre>
  
  <p>I have checked out similar posts on here. I have also tried storing the video file in different places and tried loads of different ways of accessing it.</p>
  
  <p>The path to the file is:</p>
  
  <p><code>C:\Users\Darren\workspace\player\src\player</code></p>
  
  <p>Am I missing anything obvious here?</p>