Java cmd's active directory
<p>I want to know cmd's active working directory in a java console application. </p>

<p>For example, I'm running command in console like below:</p>

<pre><code>C:\users\myuser&gt; java -jar D:\apps\application.jar
</code></pre>

<p>and I want to know</p>

<pre><code>C:\users\myuser
</code></pre>

<p>How can I get this?</p>

<p>Thx for replies</p>