package br.com.test; public class Client { public static void main( String[ ] args ) { String file = System.getProperty("user.dir"); System.out.println( file ); } }