title: Files don't load outside of editor
body: <p>What should I do to get a path to an image that is located within my project, so that it works while programming, and after I build it? The files are ones that I will have compiled into my project.</p>
  
  <p>I tried this:</p>
  
  <pre><code>public String getProjectLocation(){
      File directory = new File("");
      return directory.getAbsolutePath();
  }
  </code></pre>
  
  <p>It is then used like so:</p>
  
  <pre><code>public String projectLoc = this.getProjectLocation();
  this.setBackground(projectLoc + "/src/media/images/ladscape1.jpg");
  </code></pre>
  
  <p>But once I build the project and run it outside of my editor it doesn't work anymore, it no longer loads the proper images.</p>