title: Cannot read input file
body: <p>I'm trying to display an image onto my program, but I'm having some difficulty.</p>
  
  <pre><code>public static BufferedImage background;
  public static void main(String[] args) {    
      try {
          background = ImageIO.read(new File("background.jpg"));
      } catch (IOException e) {
          e.printStackTrace();
      }
      Display game = new Display();
      JFrame frame = new JFrame();
      JLabel label = new JLabel(new ImageIcon());
      frame.add(game);
      frame.add(label);
      frame.pack();
              // JFrame configurating
  }
  </code></pre>
  
  <p>The program cannot read the file from the path specified. This is the package explorer:
  <img src="https://i.imgur.com/0VmTLcZ.png" alt="package explorer"></p>
  
  <p>Any help is appreciated :)</p>