Hello everyone!
I have searched a lot but still don’t manage to find the resource file icon.png getting ImageIO exception!
Sprite sprite = new Sprite(ImageIO.read(Game.class.getResourceAsStream("/icons.png")));
where
public Sprite(BufferedImage image) {
"something"
}
Here is how my package tree looks like.
package—>src->Game.java
|->res->icons.png
*I have tried deleting /
*I have tried adding source lookup path
*I have tried putting the full c:/games/…/icons.png path
Thank you in advance!