project root folder in java code example Example: how to get a files location using eclipse by itself System.getproperty("user.dir");