This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]