title: How to target a file (a path to it) in Java/JavaFX
body: <p>It might be a simple one, but i can't seem to get it to work. I am making a video player in JavaFX but I don't know how to target the file that is going to be played (I don't know the correct syntax). Thank you in advance for your help. Here's a sample of code that i'm trying to run></p>
  
  <pre><code>    Media media = new Media("trailers/trailer.mp4");
      MediaPlayer player = new MediaPlayer(media);
      MediaView view = new MediaView(player);
  </code></pre>
  
  <p>btw, the file is in the project folder, then trailers/trailer.mp4. Oh, and I'm running Windows.</p>