// Getting the CWD: Current Wording Directory // namely the current directory when java.exe was invoked. // It cannot be changed on the fly. final String cwd = new File( "." ).getCanonicalPath(); // Which may or may not be the same as: final String userDir = System.getProperty( "user.dir" );