Get the Current Working Directory in Java
Description
The following code shows how to get the Current Working Directory.
Example
/*from ww w . j a v a 2s . c om*/
public class Main {
public static void main(String[] argv) throws Exception {
String curDir = System.getProperty("user.dir");
}
}