I have generate the jar file by command: jar cvfm Test.jar mymanifest.mf TestPanel.class when I double click it,the programe worked and the picture displayed. But when move the jar file to other place,why dosen't the picture display? Please help me ,thank you!
try it like this, if it still doesn't display - check the capitalisation of the image fileName
magic zha
Greenhorn
Joined: Mar 25, 2005
Posts: 24
posted
0
I have tried , but still failed. The programe always display a dialog which indicates the URL=null,and can't display the image. I use the command: jar cvfm ImageInJar.jar manifest.mf ImageInJar.class ImagePanel.class TEST.gif
magic zha
Greenhorn
Joined: Mar 25, 2005
Posts: 24
posted
0
I have tried , but still failed. The programe always display a dialog which indicates the URL=null,and can't display the image. I use the command: jar cvfm ImageInJar.jar manifest.mf ImageInJar.class ImagePanel.class TEST.gif