private String processClasspathDefaults(String javaArgs){
  if (javaArgs.indexOf("-classpath ") == -1) {
    StringBuffer munged=new StringBuffer(javaArgs);
    SearchPath classpath=classManager.getClassPath();
    if (classpath.isEmpty()) {
      String envcp=System.getProperty("env.class.path");
      if ((envcp != null) && (envcp.length() > 0)) {
        munged.append(" -classpath " + envcp);
      }
    }
 else {
      munged.append(" -classpath " + classpath.asString());
    }
    return munged.toString();
  }
 else {
    return javaArgs;
  }
}

private String processClasspathDefaults ( String javaArgs ) { if ( javaArgs . indexOf ( "-classpath " ) == - 1 ) { StringBuffer munged = new StringBuffer ( javaArgs ) ; SearchPath classpath = classManager . getClassPath ( ) ; if ( classpath . isEmpty ( ) ) { String envcp = System . getProperty ( "env.class.path" ) ; if ( ( envcp != null ) && ( envcp . length ( ) > 0 ) ) { munged . append ( " -classpath " + envcp ) ; } } else { munged . append ( " -classpath " + classpath . asString ( ) ) ; } return munged . toString ( ) ; } else { return javaArgs ; } }
add a - classpath argument to the arguments passed to the exec ' ed vm with the contents of classpath environment variable , if - classpath was not already specified .
