Querying Eclipse app directory [message #464110] |
Sat, 24 February 2007 18:59 |
Eclipse User |
|
|
|
Originally posted by: mgenovese.austin.rr.com
I promise I'm not a noob, but this sure feels like a noob question:
How do I programmatically query the directory where an Eclipse RCP app
resides on the filesystem?
If I use:
System.getProperty("user.dir")
it yields the Eclipse RCP app directory ONLY if I started it from that
directory. If I start it from another directory, that is what's
returned. In other words, it gives me the current working directory.
Again, I want the executable's directory, no matter where it's called from.
Maybe this information can be obtained from Java alone, but I haven't
discovered how. Thought perhaps Eclipse has its own way providing this
info.
Any help appreciated. Thanks.
Matt
--
|
|
|
Powered by
FUDForum. Page generated in 0.03501 seconds