code: public void start() throws Throwable
     {
        stop();
  
        if (executorService != null)
        {
           server = new Server(new ExecutorThreadPool(executorService));
        }
        else
        {
           server = new Server();
        }
  
        MBeanContainer jmx = new MBeanContainer(mbeanServer != null ? mbeanServer :
                                                ManagementFactory.getPlatformMBeanServer());
        server.addBean(jmx);
  
        Configuration.ClassList classlist = Configuration.ClassList.setServerDefault(server);
        classlist.addBefore("org.eclipse.jetty.webapp.JettyWebXmlConfiguration",
                            "org.eclipse.jetty.annotations.AnnotationConfiguration");
        
        ServerConnector connector = new ServerConnector(server);
        connector.setHost(host);
        connector.setPort(port);
        connector.setAcceptQueueSize(acceptQueueSize);
  
        server.setConnectors(new Connector[]{connector});
        
        log.info("Jetty " + Server.getVersion() + " started");
     }
docs: Start
  @exception Throwable If an error occurs