jar And WebStart I'm desperate i 've tried everything

I have an application which is downlodable with webstart.

I cannont load any image. I' ve tried everything.

I have a static class ImageLoader which loades imagesfrom a folder in the same directory(/images/...GIF). I dont know what is going on and i cannot load any image from the jar file..

Tha last try was with this:

return new ImageIcon(ImageLoader.class.getResource(File.separator+"images"+File.separator+imageName));

Message was edited by:

epp646

[497 byte] By [epp646a] at [2007-11-26 18:36:23]
# 1

Double check and make sure you are accessing the image as a resource. Double check your jar file and make sure that the path you are entering matches exactly the path in the jar file.

I have seen problems where the file in the JAR was set as,

file1.gif

and the code to retrieve it was, file1.GIF

I would wager that is your problem.

maple_shafta at 2007-7-9 6:10:25 > top of Java-index,Desktop,Deploying...
# 2
File.separtor in windows gives you "\"to get a resource you need a "/"
bettstimoa at 2007-7-9 6:10:25 > top of Java-index,Desktop,Deploying...