Share on Google+Share on Google+

Getting the Current Working Directory in Java

Advertisement
In this section, you will learn how to get the current working directory.
C:\nisha>javac GetCurrentDir.java

C:\nisha>java GetCurrentDir
Current Working Directory : C:\nisha

C:\nisha>

Download this example.

Advertisements

Posted on: April 16, 2007 If you enjoyed this post then why not add us on Google+? Add us to your Circles

Share this Tutorial Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.

Comments:2
Tarun
December 26, 2011
java

i love roseindia.net website........ one of the best site i had seen in java Subject
Robie
May 6, 2012
technicpack for mincraft

it will not let me get it because of this.