Was trying to follow http://java.sun.com/docs/books/tutorial/uiswing/components/icon.html when came across error. Seems that getResource returns null when accessing the page locally (i.e., when URL is, say, "C:\projects\html\test.html") in IE6. Class and resource are in same JAR file.
Anybody know the reasons and a work-around (if one exists)?
Encountered in Win XP/IE 6/JRE 1.6.0_11, but not in Win XP/IE 7/1.6.0-b105.
In the environment where it's working, the class loader is sun.plugin.security.PluginClassLoader. In the environment where it's broken, it's sun.plugin2.applet.Applet2ClassLoader.