I don’t understand how this could happen, since I have the directory set RIGHT to the user’s C:/ drive, and the file is THERE.
I hope someone can explain this.
Thanks,
| Nathan
I don’t understand how this could happen, since I have the directory set RIGHT to the user’s C:/ drive, and the file is THERE.
I hope someone can explain this.
Thanks,
| Nathan
Why would your C drive be part of your classpath?
Besides, never hide file extensions… ever.
It WAS originally only pointed at the second half of each file path. So, “/res/sprites/iconset.png”
I changed it because the IAExceptions started getting thrown randomly tonight after someone committed.
| Nathan
URL url = this.getClass().getClassLoader().getResource("iconset.png");
BufferedImage bimg = ImageIO.read(url);
Add res to build path, should work fine. (Project -> Properties -> Java Build Path -> Source -> Add Folder -> res)