java get exe path code example Example: get executable path java final String dir = System.getProperty("user.dir");