This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: Include files in GCJ executable so that readable bygetClass().getResourceAsStream()
- From: Jeff Sturm <jsturm at one-point dot com>
- To: Simon Rutishauser <simon dot rutishauser at gmx dot ch>
- Cc: GCJ-Mailinglist <java at gcc dot gnu dot org>
- Date: Mon, 2 Jun 2003 16:08:50 -0400 (EDT)
- Subject: Re: Include files in GCJ executable so that readable bygetClass().getResourceAsStream()
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