Home Java Example Java Io Getting the Current Working Directory in Java



Getting the Current Working Directory in Java
Posted on: April 16, 2007 at 12:00 AM
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.

Related Tags for Getting the Current Working Directory in Java:
javacidedirectoryiohelpgetvinamethisidshowexampleworkprogramtoramexamrunwsshedessectioncurrentinmntpsjesworkingdirmehowprotorxawhenxampsrectctordirectatkisirhamplvassrenthshoavhatctopleplpronogro


More Tutorials from this section

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
 
 

Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.