An example taken from an Embedded Jetty tutorial suggests the following:
public static void main(String[] args) throws Exception
{
Server server = new Server(8080);
server.setHandler(new HelloHandler());
server.start();
server.join();}
Why do I need to add the line server.join()
? It works fine without it.