public void addClassPath(String classpath){
  char sep=CauchoUtil.getPathSeparatorChar();
  int head=0;
  int tail=0;
  while (head < classpath.length()) {
    tail=classpath.indexOf(sep,head);
    String segment=null;
    if (tail < 0) {
      segment=classpath.substring(head);
      head=classpath.length();
    }
 else {
      segment=classpath.substring(head,tail);
      head=tail + 1;
    }
    if (segment.equals(""))     continue;
 else     if (segment.endsWith(".jar") || segment.endsWith(".zip"))     addMergePath(JarPath.create(VfsOld.lookup(segment)));
 else     addMergePath(VfsOld.lookup(segment));
  }
}

public void addClassPath ( String classpath ) { char sep = CauchoUtil . getPathSeparatorChar ( ) ; int head = 0 ; int tail = 0 ; while ( head < classpath . length ( ) ) { tail = classpath . indexOf ( sep , head ) ; String segment = null ; if ( tail < 0 ) { segment = classpath . substring ( head ) ; head = classpath . length ( ) ; } else { segment = classpath . substring ( head , tail ) ; head = tail + 1 ; } if ( segment . equals ( "" ) ) continue ; else if ( segment . endsWith ( ".jar" ) || segment . endsWith ( ".zip" ) ) addMergePath ( JarPath . create ( VfsOld . lookup ( segment ) ) ) ; else addMergePath ( VfsOld . lookup ( segment ) ) ; } }
adds the classpath for the loader as paths in the mergepath .
