title: ImageIO.read() infinite loop
body: <p>ImageIO.read() just seems to be stuck in an infinite loop.</p>
  
  <p>My code:</p>
  
  <pre><code>import java.awt.image.BufferedImage;
  import java.io.File;
  import java.io.IOException;
  
  import javax.imageio.ImageIO;
  
  public class Texture {
      BufferedImage _img;
  
      public Texture(String path) {
          try {
              _img = ImageIO.read(new File(path));
          } catch (final IOException e) {
              e.printStackTrace();
          }
      }
  }
  </code></pre>
  
  <p>Other class:</p>
  
  <pre><code>private Texture _tex;
  _tex = new Texture("/res/img.png");
  </code></pre>
  
  <p>I have tried loading the image this URL and File, none works.</p>
  
  <p>I am using eclipse, on a mac, and I am using LWJGL 3 if that has anything to do with anything.</p>
  
  <p>Hope you can help me! :-)</p>