java class getResource can't find icons listed in jar file

Solution 1:

You have to add a slash in front of the resource:

Fud.class.getResource("/prev.png");

otherwise java searching in the same folder as the class is located,

so it will search in localhost/system1