Online Training Spring Hibernate Training in Delhi R Programming Training Course Big Data and Hadoop Training Java Training

Getting the Current Working Directory in Java

In this section, you will learn how to get the current working directory.

Ads
C:\nisha>javac GetCurrentDir.java

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

C:\nisha>

Download this example.

Advertisements

Online Training Classes

Share on Google+Share on Google+

Getting the Current Working Directory in Java

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

Advertisements

 

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

Post your Comment


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

Ads

 

Ads