Hi
I managed to create an exe from java classes using MingW GCJ. My
application uses images. How do I insert/embed those images/"other
resources" into the exe, so that i can simply distribute one exe file
instead of distributing an exe along with the resouces folders.
I used the following cmd to generate an *.o file from an image file
gcj -c -o icon.o --resource=3Dswt.gif pkg1\swt.gif
and I compiled the whole java app using
gcj --main=3Dpkg1.HelloSWT -O3 -o HelloSWT pkg1\HelloSWT.java
pkg1\SupportClass.java icon.o
when I run the generated HelloSWT exe with the gif file in the same
directory it works, but if i remove the gif file,and then run the
HelloSWT exe, it crashes (I get a file not found exception ). How do I
embed this gif file into the exe rather than simply giving a reference
to the exe.
Thanks in advance
--=20
Regards Suren
|