Could anyone tellme please is it the way to load resource file from applet's jar?
I use the following line of code to load resources from a jar
InputStream is = getClass().getResourceAsStream("/resourcepath/resourcename");
InputStream is = getClass().getResourceAsStream("resourcepath/resourcename");
for relative pathes.
All works well when I start it as application. But when I start it as applet resources are not found.
What's the matter and what the way achieve this?