If the
img folder is in your classpath then
you should be able to load the images it contains with:
java.net.URL url = getClass().getResource("img/" + image_name); You shouldn't have to specify where the
img folder is relative to the
classes folder. The class loader does that for you.