Article View: borland.public.jbuilder.java.language
Article #14583AW: Absolute path to class file
From: gregor.schneider
Date: Tue, 17 Aug 1999 00:00
Date: Tue, 17 Aug 1999 00:00
33 lines
1373 bytes
1373 bytes
howdy, > Von: Ben Starr[SMTP:bens@compurp.org.uk] > Betreff: Absolute path to class file > > > Is there a way to find out the absolute path of the .class file a Class > was > loaded from? I want a class to reference a text file on the disk stored in > the same directory as its .class file without having to hard-code the > path. > String thePath = yourObject.getClass().getName(); regards -- Gregor Schneider Gerling-Konzern Ges. fΓΌr Informationsmanagement und Organisation mbH Anwendungsentwicklung II - Zentrale Anwendungskomponenten phone: +49-221-144-4637 fax: +49-221-144-66837 web: http://www.gerling.de Sent via Deja.com http://www.deja.com/ Share what you know. Learn what you don't.
Technical Details
Message-ID:
<B60F13A5F741D3118DAD00508B135E99BA2A4B@S-D-K-01.gerling.de>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: f74b3,488dd600984f352c X-Google-Attributes: gidf74b3,public From: gregor.schneider@gerling.de Subject: AW: Absolute path to class file Date: 1999/08/17 Message-ID: <B60F13A5F741D3118DAD00508B135E99BA2A4B@S-D-K-01.gerling.de> X-Deja-AN: 513754388 Content-Transfer-Encoding: quoted-printable To: borland.public.jbuilder.java.language@list.deja.com X-DejaID: _qzBE+KLSRx2lQDRClwkxnQ= Content-Type: text/plain Organization: Deja.com - Share what you know. Learn what you don't. Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.language