posted 20 years ago
Hi ,
I have problem with executing jar file .
I have create swing application which is bundled in jar file.
(execuable jar file).
( jar file contains class file , images and manifest file )
For ex. :
My class name ShowImg which display images . (images from images folder)
Toolkit kit = comp.getToolkit();
Image img = kit.createImage("./images/nature.jpg");
using following command i have created jar file.
jar -cvfm test.jar man.mf ShowImg.class images\nature.jpg
When i run jar file in same directory where images folder exists it
works fine. But when i copy test.jar file some where else it doesn't
work. It displays only frame not image.
Give some tips ........
thx in advance
Manoj