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

Simon Rutishauser simon.rutishauser@gmx.ch
Mon Jun 2 19:54:00 GMT 2003


Hi,
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"); ?
Or has anybody a similar solution which works not only for gcj-compiled 
programs but also for simple .class files and jar archives ran by a JVM?
Peschmä


More information about the Java mailing list

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