Article View: borland.public.jbuilder.java.language
Article #14721Absolute path to class file
From: Ben Starr
Date: Tue, 17 Aug 1999 00:00
Date: Tue, 17 Aug 1999 00:00
10 lines
997 bytes
997 bytes
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. Thanks, Ben Starr BenS@compurp.org.uk (Please note my e-mail address has been altered to avoid spammers, change compurp to commonpurpose if you wish to e-mail me)
Technical Details
Message-ID:
<934885178.20129.0.nnrp-14.c3add604@news.demon.co.uk>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,488dd600984f352c,start X-Google-Attributes: gidf74b3,public From: "Ben Starr" <BenS@compurp.org.uk> Subject: Absolute path to class file Date: 1999/08/17 Message-ID: <934885178.20129.0.nnrp-14.c3add604@news.demon.co.uk> X-Deja-AN: 513738074 X-NNTP-Posting-Host: [195.173.214.4]:195.173.214.4 X-Trace: news.demon.co.uk 934885178 nnrp-14:20129 NO-IDENT [195.173.214.4]:195.173.214.4 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Newsgroups: borland.public.jbuilder.java.language X-Complaints-To: abuse@demon.net