Java.PS

Java by Petr Sladek

[ About | Contact ]

Get the Current Working Directory in Java

This will print a complete absolute path from where your Java application was initialized.

    System.out.println("Working Directory = " +
              System.getProperty("user.dir"));