My textures have only been working in Eclipse but when I try to export it as a runnable jar ill start it up and there is no textures. I made a resources folder and connected it to the project by making it a class folder but it only works in eclipse. this is how I usually access the textures.
Image something;
public Image getsomethingImg(){
ImageIcon s=new ImageIcon("res/something.png");
something=s.getImage();
return something;
}
Then i draw it.
g2d.drawImage(getsomethingImg(), 0, 0, null);