First off let me start by stating what my project path looks like really quickly.
project/src/application/<.java files>
project/src/img/<.png files>
project/bin/application/<.class files>
project/bin/img/<.png files>
Eclipse was smart enough to duplicate my img folder in the bin folder once I created under the src folder.
The code in question is the following (called in the CardImage class):
BufferedImage myPic = ImageIO.read(CardImage.class.getClass().getResource("/img/1.png"));
From what I can tell, this is the correct way of grabbing the images off the bin/img folder. Yet I continue to get the following error.
javax.imageio.IIOException: Can't read input file!
at javax.imageio.ImageIO.read(Unknown Source)
I've read similar questions and answers such as this one but can't seem to figure out why it's not working. Also I'm not entirely sure if the getClass() call was necessary after doing
CardImage.class