Home Java Example Java Io Getting the Current Working Directory in Java
Questions:Ask|Latest


 
 

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.


Liked it!  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.

Posted on: April 16, 2007

Ask Questions?    Discuss: Getting the Current Working Directory in Java   View All Comments

Post your Comment


Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 
Comments
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.
DMCA.com