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