Article View: borland.public.jbuilder.java.swing
Article #7623Re: Applicatio.Path
From: Khurram Shakir
Date: Tue, 09 Jan 2001 08:17
Date: Tue, 09 Jan 2001 08:17
27 lines
1634 bytes
1634 bytes
Assuming that you are running an application , you can also find the current
Path using java.io.File
File f = new File(".");
//and then call
String path = f.getAbsolutePath();
this will give you the path, from which your application is running,
Hope this will help,
--
Khurram Shakir
Sun Certified Programmer for Java 2 Platform
"Cheetah" <Cheetah@grolmose.com> wrote in message
news:MPG.14c44f7311a2d269989685@forums.inprise.com...
> 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:
<3a5ac923_2@dnews>Path:
arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!news.cs.utwente.nl!newshunter!cosy.sbg.ac.at!news.tele.dk!128.230.129.106!news.maxwell.syr.edu!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!bornews.borland.com!dnews!203.135.53.84References:
<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-09 00:23:26 PST From: "Khurram Shakir" <kshakir@softhome.net> Newsgroups: borland.public.jbuilder.java.swing References: <MPG.14c44f7311a2d269989685@forums.inprise.com> Subject: Re: Applicatio.Path Date: Tue, 9 Jan 2001 13:17:41 +0500 Lines: 29 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 NNTP-Posting-Host: 203.135.53.84 Message-ID: <3a5ac923_2@dnews> X-Trace: 9 Jan 2001 00:17:39 -0800, 203.135.53.84 Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!news.cs.utwente.nl!newshunter!cosy.sbg.ac.at!news.tele.dk!128.230.129.106!news.maxwell.syr.edu!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!bornews.borland.com!dnews!203.135.53.84