🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.swing
Article #7619

Re: Applicatio.Path

#7619
From: Torsten Welches
Date: Tue, 09 Jan 2001 07:06
26 lines
1640 bytes
Cheetah, 

in Java the concept of an "application path" does not really exist. What directory do you consider the application dir? 
The one where your main-class resides? 
What if this is inside a JAR file? Now the JAR file could be somewhere, say, on a http server...

System.getProperties lists some "well-known" directories
("user.home", "user.dir"), maybe you can use these? 

Good luck,
Torsten

Cheetah <Cheetah@grolmose.com> wrote:
>Hi, i have the following question:
>
>I want to retrieve the current path of my application
>In C++ Builder the following line did the job:
>
>MyApplicationPath = Application->Path;
>
>
>Is there something similiar in JBuilder? (Swing)
>
>
>Thanks in advance
Technical Details
Message-ID: <3a5ab86d_1@dnews>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!europa.netcrusader.net!205.252.116.205!howland.erols.net!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!bornews.borland.com!dnews!207.105.83.65
References: <MPG.14c44f7311a2d269989685@forums.inprise.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,2288b62ea4c95126
X-Google-Attributes: gid111d45,public
X-Google-ArrivalTime: 2001-01-08 23:14:04 PST
From: "Torsten Welches" <torsten.welches@who.cares.netcologne.de>
Sender: "Torsten Welches" <torsten.welches@who.cares.netcologne.de>
Reply-To: "Torsten Welches" <torsten.welches@who.cares.netcologne.de>
Subject: Re: Applicatio.Path
Newsgroups: borland.public.jbuilder.java.swing
X-User-Info: 193.158.55.74 193.158.55.74    
References:  <MPG.14c44f7311a2d269989685@forums.inprise.com> 
NNTP-Posting-Host: 207.105.83.65
Message-ID: <3a5ab86d_1@dnews>
Date: 8 Jan 2001 23:06:21 -0800
X-Trace: 8 Jan 2001 23:06:21 -0800, 207.105.83.65
Lines: 27
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!europa.netcrusader.net!205.252.116.205!howland.erols.net!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!bornews.borland.com!dnews!207.105.83.65