🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Proplems addressing the path

#1837
From: Gunter Sammet
Date: Tue, 21 Aug 2001 03:06
26 lines
1762 bytes
Hello,
I try to migrate my project into JBuilder. My main classes are in the
package occproject.
My directrory structure used to be:

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

I address the graghic files e.g.
...class.getResource("../graphics/openFile.gif").

The jbuilder structure is now:

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

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"

To see if it recognizes one parent directory, I copied the graphics folder
paralell to the classes file and used my old ("../graphics/openFile.gif")
address scheme. It worked.

ANY SUGGESTIONS? TIA Gunter
Technical Details
Message-ID: <3b81c0ac_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.174.75.178!news-fra1.dfn.de!news-lei1.dfn.de!newsfeed.freenet.de!news1.dtag.de!news.gwi-ag.com!dnews

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1089d0,dc0611d05c92bdd5,start
X-Google-Attributes: gid1089d0,public
X-Google-ArrivalTime: 2001-08-20 19:09:49 PST
Reply-To: "Gunter Sammet" <Gunter@sammet.net>
From: "Gunter Sammet" <Gunter@sammet.net>
Newsgroups: borland.public.jbuilder.java.api
Subject: Proplems addressing the path
Date: Mon, 20 Aug 2001 20:06:18 -0700
Lines: 28
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: <3b81c0ac_1@dnews>
X-Trace: dnews 998359212 142.59.113.69 (20 Aug 2001 19:00:12 -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.174.75.178!news-fra1.dfn.de!news-lei1.dfn.de!newsfeed.freenet.de!news1.dtag.de!news.gwi-ag.com!dnews