Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Querying Eclipse app directory
Querying Eclipse app directory [message #464110] Sat, 24 February 2007 18:59
Eclipse UserFriend
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
--
Previous Topic:JFace ListViewer-Update in an Editor-Part?
Next Topic:Editors
Goto Forum:
  


Current Time: Sun Mar 16 19:29:51 EDT 2025

Powered by FUDForum. Page generated in 0.03501 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top