title: How to locate the Path of the current project directory in Java (IDE)?
body: <p>I am trying to locate the path of the current running/debugged project programmatically in Java, I looked in Google and what I found was <code>System.getProperty("user.id")</code>, which didn't get me the project's path.</p>
  
  <p>I know the command <code>Environment.currentDirectory</code> in C# gives the path of the current running/debugged project,so I am sure there must be a similar way in Java, too.</p>
  
  <p>So I am asking if anyone could tell me or give me a code to how locate the path of the currently running/debugged project programmatically?</p>
  
  <p><strong>edit</strong>:
  i am writing plugin which loads with eclipse start.
  the plugin adds a button to the workbench of eclipse, with in the code of the plugin
  when i click the button i search for the current directory path.</p>
  
  <p>my purpose is that when for example i debug a project and then click the button, a window will pop up presenting the debugged project's path, thanks</p>