Article View: borland.public.jbuilder.java.language
Article #7152Locate application home directory
From: KK
Date: Mon, 16 Jul 2001 08:45
Date: Mon, 16 Jul 2001 08:45
10 lines
1263 bytes
1263 bytes
Dear all: Does anyone know how to locate the application's home directory? Since the application can be called anywhere, I can use paths like "./data/datafile.txt" to reference a particular file's location. Rather I want to know the exact path such as /home/myapp/data/datafile.txt" instead. Is there a method that can retreive the application's home directory? Thank you Ken Kwok
Technical Details
Message-ID:
<3b52aa7e_2@dnews>Path:
arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!news.tele.dk!194.25.134.62!newsfeed00.sul.t-online.de!t-online.de!news1.dtag.de!news.stgl.sel.alcatel.de!news.stgl.sel.alcatel.de!dnewsShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,e024810f3f08dd96,start X-Google-Attributes: gidf74b3,public X-Google-ArrivalTime: 2001-07-16 02:06:24 PST From: "KK" <kk@hotmail.com> Newsgroups: borland.public.jbuilder.java.language Subject: Locate application home directory Date: Mon, 16 Jul 2001 16:45:58 +0800 Lines: 12 Organization: CDS X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 NNTP-Posting-Host: 158.140.220.181 Message-ID: <3b52aa7e_2@dnews> X-Trace: dnews 995273342 158.140.220.181 (16 Jul 2001 01:49:02 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!news.tele.dk!194.25.134.62!newsfeed00.sul.t-online.de!t-online.de!news1.dtag.de!news.stgl.sel.alcatel.de!news.stgl.sel.alcatel.de!dnews