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