code: private void addToClassPath(Set<String> cp, String entries) {
      if (isEmpty(entries)) {
        return;
      }
      String[] split = entries.split(Pattern.quote(File.pathSeparator));
      for (String entry : split) {
        if (!isEmpty(entry)) {
          if (new File(entry).isDirectory() && !entry.endsWith(File.separator)) {
            entry += File.separator;
          }
          cp.add(entry);
        }
      }
    }
docs: Adds entries to the classpath.
  
  @param cp List to which the new entries are appended.
  @param entries New classpath entries (separated by File.pathSeparator).