title: Odd Java issue: can find one file with short filepath but cannot find another
body: <p>I'm working on a Java Swing application where I am reading in multiple graphic files to populate a tile based map editor.</p>
  
  <p>I create these tile view objects of mine through the use of a class called TileSet which essentially breaks down my images into individual files.  The code itself works, but I am having an issue with my filepaths that has got me scratching my head.  Here is what's going on,</p>
  
  <pre><code>TileSelector ts = new TileSelector(new TileSet("src\\resources\\minecraft.png"));
  
  MapView mapView = new MapView(new TileSet("src\\resources\\mapviewdefault.png"));
  </code></pre>
  
  <p>For some reason, my TileSelector accepts the format in which I wrote the directory to the image it will use, but MapView throws an IOException (File not found!).  Both files are within this directory, the only difference I can really think of is that one image is vastly larger than the other, where the smallest is loading up no issues.  If I go and put the full directory to the larger image it works, but since I'm writing this program for a school project which will be given to a sponsor, I cannot keep this format as the final way I deliver the package.</p>
  
  <p>Any ideas?</p>
  
  <p>Also, here is the code for my TileSet, where the issue is happening according to my stack trace...</p>
  
  <pre><code>private void createTileSet(String fileName) {
      try {
          File file = new File(fileName);
  
          if (!file.exists())
              throw new IOException("File not found...");
  
          image = ImageIO.read(new File(fileName));
  
          numTilesWidth = image.getWidth() /tileWidth; //Set how many tiles on the X axis there are
          numTilesHeight = image.getHeight() / tileHeight; //Set how many tiles on the Y axis there are
          numTiles = numTilesHeight * numTilesWidth;
  
          for (int h = 0; h &lt; numTilesHeight; h++) {
              for (int w = 0; w &lt; numTilesWidth; w++) {
                  imagesList.add(image.getSubimage(w * tileWidth, h * tileHeight, tileWidth, tileHeight));
              }
          }
      } catch (IOException e) {
          System.out.println("IOException catch: " + e);
          e.printStackTrace();
      }
  }
  </code></pre>