try this one:

java.io.File currentDir = new java.io.File("");
System.out.println(currentDir.getAbsolutePath());