title: Java ImageIO: can't read input file
body: <p>I don't know why this isn't working, but the program says it can't read the input file. This is also being run in Ubuntu, by the way:</p>
  
  <p>Here is the sample code:</p>
  
  <pre><code>URI url = new URI("images/GUI/TitleScreen.PNG");
  File file = new File(url.toString());           
  bg = new ImageBackground(ImageIO.read(file));
  </code></pre>
  
  <p>The directory is located in the bin folder and src folder of the program as well.</p>