title: Get working directory of another Java process
body: <p>I can get working directory of current Java program using this code:
  <code>Path path = Paths.get(*ClassName*.class.getProtectionDomain().getCodeSource().getLocation().toURI());</code></p>
  
  <p>Also I can get CommandLine parameters (but there is no directory in the output) of running Java processes using this command <code>wmic process get CommandLine where name='java.exe' /value</code></p>
  
  <p>It is possible to get working directory of another Java process (better programmatically)? Probably it can be solved with some jdk/bin utilities?</p>