try { File currDir = new File ("."); System.out.println("Dir: " + currDir.getCanonicalPath());}catch (IOException ex){ //}