Problem with jar file

Hello frnds,

I m facing one problem with my project.

when i m trying to lunch my application(MP3 player simulation) using jar file then my frame is working but that is unable to load all image files.

This application is running using simple run command.

Jar file also contain all image files.

I m using getResource() method to get URL.

But it is returning null when i m trying to run using jar.

But return correct url when run my app. using simple run command.

Please try to solve that prob.

surbhi

[560 byte] By [surbhijoshia] at [2007-11-26 13:35:53]
# 1
> when i m trying to lunch my applicationI'd have a problem with that, too ...
quittea at 2007-7-7 22:20:01 > top of Java-index,Java Essentials,Java Programming...
# 2
How do you try to load these images? The best way would be to create an ImageIcon, it can handle JAR file URLs.
quittea at 2007-7-7 22:20:01 > top of Java-index,Java Essentials,Java Programming...
# 3
I m also using ImageIcon method.
surbhijoshia at 2007-7-7 22:20:01 > top of Java-index,Java Essentials,Java Programming...
# 4
Hello,Prob. with getResource() method that i m using, that is not giving URL of image.returning null.
surbhijoshia at 2007-7-7 22:20:01 > top of Java-index,Java Essentials,Java Programming...
# 5
Have you checked whether these images are actually contained in the JAR file?
quittea at 2007-7-7 22:20:01 > top of Java-index,Java Essentials,Java Programming...