public static void fillUserJarForJobGraph(String jarPath, JobGraph jobGraph) throws UnsupportedEncodingException {
        String addjarPath = URLDecoder.decode(jarPath, Charsets.UTF_8.toString());
        if (addjarPath.length() > 2) {
            addjarPath = addjarPath.substring(1, addjarPath.length() - 1).replace("\"", "");
        }
        List<String> paths = Arrays.asList(addjarPath.split(","));
        paths.forEach(path -> jobGraph.addJar(new Path("file://" + path)));
    }
build JobGraph by JobParamsInfo
Date: 2020/3/4
Company: www.dtstack.com
@author maqi
launcher/src/main/java/com/dtstack/flink/sql/launcher/utils/JobGraphBuildUtil.java