|
From: Kevin M. <qk...@lm...> - 2001-07-18 10:03:36
|
I have built a jar file from my python scripts
> cd $HOME/work
> jythonc -a -j demo.jar Gui.py
The GUI uses several gif files stored in 'icons', e.g.
rightIcon = swing.ImageIcon("icons/right.gif")
So I add these manually to the demo.jar
> jar -uf demo.jar icons
I copy demo.jar to it's final location and run it
> cp demo.jar /tmp
> cd /tmp
> java -jar demo.jar
The GUI starts, but none of the icons appear. If I create the icons
directory locally and copy the icons there, then everything works fine.
> mkdir icons
> cp $HOME/work/icons/* icons
> java -jar demo.jar
Why is demo.jar looking in ./icons instead of in demo.jar?
_________________________________________________
Name/Title : Kevin McNamee, Software Consultant
Phone : +46 13 32 1165
E-Mail : kev...@er...
|