Getting at resources in a jar file

I have a package.
I added a jar file to that package (in the code/jars directory).
I can use the classes in that jar file just fine,
but the classes in that jar file can not access their own
resources (i.e. a jpeg file)
How can I allow them to use these resources?
If I can not, what mechanism can I use to have them access

Thank you,

I haven’t done it from within wm, but here’s some Java code that I wrote eons ago that does it. :slight_smile:

// icon image
try {
URL iconUrl = getClass().getResource(“CAPSIcon.gif”);
if (iconUrl != null) {
ImageProducer imageProd = (ImageProducer)iconUrl.getContent();
} catch (Exception e) {}