private static URL[] pathToURLs(String path) throws MalformedURLException {
  String[] names=path.split(File.pathSeparator);
  URL[] urls=new URL[names.length];
  int count=0;
  for (  String f : names) {
    URL url=fileToURL(new File(f));
    urls[count++]=url;
  }
  return urls;
}

private static URL [ ] pathToURLs ( String path ) throws MalformedURLException { String [ ] names = path . split ( File . pathSeparator ) ; URL [ ] urls = new URL [ names . length ] ; int count = 0 ; for ( String f : names ) { URL url = fileToURL ( new File ( f ) ) ; urls [ count ++ ] = url ; } return urls ; }
utility method for converting a search path string to an array of directory and jar file urls .
