Article View: borland.public.jbuilder.java.api
Article #1838Re: Proplems addressing the path
From: John McGrath TeamB
Date: Tue, 21 Aug 2001 08:09
Date: Tue, 21 Aug 2001 08:09
20 lines
1492 bytes
1492 bytes
On Mon, 20 Aug 2001 20:06:18 -0700, Gunter Sammet wrote:
> I tried to address the graghic files like this:
> ...class.getResource("../../srcgraphics/openFile.gif").
> Some other tries been: "./../../srcgraphics/openFile.gif" and
> "..\\..\\srcgraphics\\openFile.gif"
try: "/graphics/openFile.gif"
This should also work if you package your classes into a JAR file.
I do not think that would have worked as you had it originally.
--
Regards,
John McGrath [TeamB]
---------------------------------------------------
Before sending me e-mail, please read:
http://www.JPMcGrath.net/newsgroups/e-mail.html
Technical Details
Message-ID:
<MPG.15ebdf5ccb2a765f98a53f@forums.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!cpk-news-hub1.bbnplanet.com!news.gtei.net!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnewsReferences:
<3b81c0ac_1@dnews>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1089d0,dc0611d05c92bdd5 X-Google-Attributes: gid1089d0,public X-Google-ArrivalTime: 2001-08-21 01:12:02 PST From: John McGrath [TeamB] <ng-b@JPMcGrath.net> Newsgroups: borland.public.jbuilder.java.api Subject: Re: Proplems addressing the path Date: Tue, 21 Aug 2001 04:09:56 -0400 Message-ID: <MPG.15ebdf5ccb2a765f98a53f@forums.borland.com> References: <3b81c0ac_1@dnews> X-Newsreader: MicroPlanet Gravity v2.30 NNTP-Posting-Host: 209.92.40.60 X-Trace: dnews 998381396 209.92.40.60 (21 Aug 2001 01:09:56 -0700) Lines: 20 X-Authenticated-User: jpmcgrath Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!cpk-news-hub1.bbnplanet.com!news.gtei.net!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnews