When I try to run an applet in applet viewer it is not able to find resources (Image). I try to load resource like this:
String cb= this.getCodeBase().toString()
The context classloader should work with jars.
ClassLoader cl = Thread.getContextClassLoader(); ImageIcon icon = new ImageIcon(cl.getResource("something.png"), "description");