title: Java: get absolute path of project
body: <p>I'm trying to run a exe file in path outside of the current package. My code.java file that runs it is in</p>
  
  <pre><code>%Workspace_path%\Project\src\main\java\com\util\code.java
  </code></pre>
  
  <p>However the directory of where the exe is </p>
  
  <pre><code>%Workspace_path%\Project\src\main\resources\program.exe
  </code></pre>
  
  <p>If possible, it seems like the best solution here would be to get the absolute path of the Project then append "src\main\resources\" to it. Is there a good way to do this or is there an alternative solution? 
  I'm using Eclipse, but it would great if it could be used in other IDEs too. Thanks for any help.</p>