image files not loading from the jar file

I call the Images like thisimg = Toolkit.getDefaultToolkit().createImage("Textures/"+filePath+".gif");The image should be in the Textures folderbut none of my images load
[198 byte] By [CJM3407a] at [2007-11-26 21:31:24]
# 1
actually now that I look at it it can retrieve any files including my text files that load settings
CJM3407a at 2007-7-10 3:12:04 > top of Java-index,Desktop,Deploying...
# 2
can't* sry
CJM3407a at 2007-7-10 3:12:04 > top of Java-index,Desktop,Deploying...
# 3

To read resources from the jar file where the class itself is present, you can use following way, for example for reading image icons from jar:

ImageIcon icon =new ImageIcon(this.getClass().getResource("icons/" + name));

getResource() gives you url resource of the image, you can use getResourceAsStream to get stream as well.

for example:

http://forum.java.sun.com/thread.jspa?threadID=633261&messageID=3669756

Vlasakcza at 2007-7-10 3:12:04 > top of Java-index,Desktop,Deploying...