Monday 14 January 2008

Current directory in Java

Here is something that I need all the time:

Current directory can be retrieved with:
System.getProperty("user.dir");

Some other properties from System are also very useful (here is the list of all properties)

No comments:

Popular Posts