This Java tip illustrates a way of getting the name of the current working directory. The working directory is the location in the file system from where the java command was invoked.

 String curDir = System.getProperty("user.dir");