🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #16082

Application path

#16082
From: Rima Parikh
Date: Mon, 05 Apr 1999 00:00
12 lines
933 bytes
Hi :

How do I determine what path my java main application class is loaded from. "user.dir" is the current working directory, but if the actual jar or class file is loaded from some other directory, how can I determine that directory inside the program?

TIA,
Rima Parikh.



-----------------** -- Posted from CodeGuru -- **-----------------
http://www.codeguru.com/java     The website for Java programmers.
Technical Details
Message-ID: <37090676.0@209.66.99.126>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,23e949b6e1b09783,start
X-Google-Attributes: gidf74b3,public
From: "Rima Parikh" <parikh@cognicity.com>
Subject: Application path
Date: 1999/04/05
Message-ID: <37090676.0@209.66.99.126>
X-Deja-AN: 462934579
Sender: "Rima Parikh" <parikh@cognicity.com>
Organization: Another Netscape Collabra Server User
Reply-To: "Rima Parikh" <parikh@cognicity.com>
X-User-Info: 209.46.30.220     
Newsgroups: borland.public.jbuilder.java.language