protected void addClassPath(String classpath){
  if (classpath == null)   return;
  String sep=classpath.indexOf(";") == -1 ? ":" : ";";
  String[] parseCp=classpath.split(sep);
  for (  String cpEntry : parseCp) {
    addEntry(cpEntry);
  }
}

protected void addClassPath ( String classpath ) { if ( classpath == null ) return ; String sep = classpath . indexOf ( ";" ) == - 1 ? ":" : ";" ; String [ ] parseCp = classpath . split ( sep ) ; for ( String cpEntry : parseCp ) { addEntry ( cpEntry ) ; } }
add classpath with path separator . separator can be ; or : for example : / usr / lib / mylib1 . jar : / usr / lib / mylib2 . jar : / usr / lib / mylib3 . jar
