Include files in GCJ executable so that readable by getClass().getResourceAsStream()

Jeff Sturm jsturm@one-point.com
Mon Jun 2 20:08:00 GMT 2003


On Mon, 2 Jun 2003, Simon Rutishauser wrote:
> how can I include files (e.g. images) in a gcj executable (or also outside of
> it) so that I can get them at runtime by executing
>> getClass().getResourceAsStream("filename.bmp"); ?

gcj -c --resource=my/package/filename.bmp filename.bmp -o myresource.o
Jeff


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /