🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.api
Article #1840

Re: Proplems addressing the path

#1840
From: Gunter Sammet
Date: Tue, 21 Aug 2001 16:46
45 lines
2532 bytes
"/graphics/openFile.gif" didn't work for the second directory structure:

classes/occsoft/occproject/<class files>
classes/occsoft/graphics/<graphic files>

occ/classes/occproject/<class files>
occ/src/graphics/<graphic files>

This "../graphics/openFile.gif" still worked for the first directory
structure as well.

I don't like having the graphic directory underneath classes . Parallel
would be fine but then I'm back to the problem of going up 2 directories.
Here my desired directory structure:

occ/classes/occproject/<class files>
occ/graphics/<graphic files>

Aby hints? btw, I tried to set the classpath in the project settings to ..
or .  but JBuilder didn't like ii.
TIA Gunter


"John McGrath [TeamB]" <ng-b@JPMcGrath.net> wrote in message
news:MPG.15ebdf5ccb2a765f98a53f@forums.borland.com...
> On Mon, 20 Aug 2001 20:06:18 -0700, Gunter Sammet wrote:
>
> > I tried to address the graghic files like this:
> > ...class.getResource("../../src/graphics/openFile.gif").
> > Some other tries been: "./../../src/graphics/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: <3b828120_1@dnews>
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!news.tele.dk!small.news.tele.dk!193.190.198.17!newsfeeds.belnet.be!news.belnet.be!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnews
References: <3b81c0ac_1@dnews> <MPG.15ebdf5ccb2a765f98a53f@forums.borland.com>

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 08:46:40 PST
Reply-To: "Gunter Sammet" <Gunter@sammet.net>
From: "Gunter Sammet" <Gunter@sammet.net>
Newsgroups: borland.public.jbuilder.java.api
References: <3b81c0ac_1@dnews> <MPG.15ebdf5ccb2a765f98a53f@forums.borland.com>
Subject: Re: Proplems addressing the path
Date: Tue, 21 Aug 2001 09:46:21 -0700
Lines: 47
Organization: sammysolutions.com ltd.
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2479.0006
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2479.0006
NNTP-Posting-Host: 142.59.113.69
Message-ID: <3b828120_1@dnews>
X-Trace: dnews 998408480 142.59.113.69 (21 Aug 2001 08:41:20 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!news.tele.dk!small.news.tele.dk!193.190.198.17!newsfeeds.belnet.be!news.belnet.be!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnews