Article View: borland.public.jbuilder.java.language
Article #8691How can a class figure out directory path to where it was installed ?
From: Alex Colic
Date: Wed, 07 Mar 2001 15:09
Date: Wed, 07 Mar 2001 15:09
19 lines
1331 bytes
1331 bytes
Hi, I am trying to create a servlet that will allow users to modify their web.xml file. I know the class is going to be installed in the lib directory of the web-inf directory. I am trying to create a file object with the path to this directory. How do I construct a file object pointing to the directory from which the class is located. I can then work by way up a directory and then to the web.xml file. Any help is appreciated. -- Regards Alex Colic-0132
Technical Details
Message-ID:
<985iso$fjj4@bornews.inprise.com>Path:
arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!newsfeed.wirehub.nl!hub.org!hub.org!PeerFeed.KWeb.on.ca!bornews.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,e64ea888500608a1,start X-Google-Attributes: gidf74b3,public X-Google-ArrivalTime: 2001-03-07 07:14:08 PST Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!newsfeed.wirehub.nl!hub.org!hub.org!PeerFeed.KWeb.on.ca!bornews.borland.com!not-for-mail From: "Alex Colic" <alex.colic@pop-ware.com> Newsgroups: borland.public.jbuilder.java.language Subject: How can a class figure out directory path to where it was installed ? Date: Wed, 7 Mar 2001 10:09:18 -0500 Organization: Another Netscape Collabra Server User Lines: 21 Message-ID: <985iso$fjj4@bornews.inprise.com> NNTP-Posting-Host: d150-29-218.home.cgocable.net 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