void (List<String> classpathInHost, List<String> classpathInTarget) { StringBuilder builder = new StringBuilder(); for (String file : classpathInHost) { if (builder.length() > 0) { builder.append(File.pathSeparator); } builder.append(FileUtil.toCanonicalPath(file)); } for (String s : classpathInTarget) { if (builder.length() > 0) { builder.append(File.pathSeparator); } builder.append(getHostWorkingDirectory().resolve(s)); } myCommandLine.addParameter(builder.toString()); }