code: public static void main(String[] args) {
  		try {
  			// get the config directory first
  			String configDir = null;
  
  			if (args.length >= 2 && args[0].equals("-configDir")) {
  				configDir = args[1];
  			}
  
  			if (configDir == null) {
  				System.err
  					.println("Error: Configuration directory must be specified.\nWebFrontend -configDir <directory>\n");
  				System.exit(1);
  				return;
  			}
  
  			// load the global configuration
  			GlobalConfiguration.loadConfiguration(configDir);
  			Configuration config = GlobalConfiguration.getConfiguration();
  			
  			// add stratosphere base dir to config
  			config.setString(ConfigConstants.STRATOSPHERE_BASE_DIR_PATH_KEY, configDir+"/..");
  
  			// get the listening port
  			int port = config.getInteger(ConfigConstants.WEB_FRONTEND_PORT_KEY,
  				ConfigConstants.DEFAULT_WEBCLIENT_PORT);
  
  			// start the server
  			WebInterfaceServer server = new WebInterfaceServer(config, port);
  			LOG.info("Starting web frontend server on port " + port + '.');
  			server.start();
  			server.join();
  		} catch (Throwable t) {
  			LOG.error("Unexpected exception: " + t.getMessage(), t);
  		}
  	}
docs: Main method. accepts a single parameter, which is the config directory.
  
  @param args
  The parameters to the entry point.