Installation directory path

From: Sveta (sveta_at_sth.com)
Date: 08/29/04


Date: Sun, 29 Aug 2004 20:49:13 GMT

Hello everybody,

My application needs to keep reading files from the directory in which it
will be intsalled. How can I implement this in my code?

I don't think that something like System.getProperty("user.dir") is what I
am after, as the user may have a batch file and run the application from
wherever he/she likes. I don't want the directory the application is running
from currently, but the actual installation directory. (By the way, this
should also be cross platform ).

Any ideas?

Thank you in advance,

Sveta