Article View: borland.public.jbuilder.java.api
Article #651Re: How to include GIF in jar-file
From: Tor Iver Wilhelmsen (TeamB)
Date: Tue, 25 Mar 2003 11:39
Date: Tue, 25 Mar 2003 11:39
8 lines
1284 bytes
1284 bytes
"J. Ebert" <ebert@hhpv.de> writes:
> I would like to have the gif in the jar-File that the archive
> builder builds. And I do not know how to reference the gif when
> it is not on the disk.
It will be on the classpath, use
getClass().getResource("/theimage.gif")
Technical Details
Message-ID:
<usmtbu13n.fsf@ergo.no>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!pd2nf1so.cg.shawcable.net!residential.shaw.ca!news-out.spamkiller.net!propagator2-maxim!propagator3-maxim!news-in.superfeed.net!newsfeed01.tsnz.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<3e803895$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1089d0,b0881a9f84e280a7 X-Google-Attributes: gid1089d0,public X-Google-ArrivalTime: 2003-03-25 04:02:13 PST Sender: towi@SDSA3850 Newsgroups: borland.public.jbuilder.java.api Subject: Re: How to include GIF in jar-file References: <3e803895$1@newsgroups.borland.com> From: tor.wilhelmsen@ergo.no (Tor Iver Wilhelmsen (TeamB)) Date: 25 Mar 2003 12:39:24 +0100 Message-ID: <usmtbu13n.fsf@ergo.no> Lines: 8 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii NNTP-Posting-Host: 139.105.4.245 X-Trace: newsgroups.borland.com 1048592381 139.105.4.245 (25 Mar 2003 03:39:41 -0800) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!pd2nf1so.cg.shawcable.net!residential.shaw.ca!news-out.spamkiller.net!propagator2-maxim!propagator3-maxim!news-in.superfeed.net!newsfeed01.tsnz.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail