    public static void main(String[] arg) throws Exception {
        int port = arg.length > 1 ? Integer.parseInt(arg[1]) : 8080;
        Server server = new Server(port);
        ServletHandler servletHandler = new ServletHandler();
        servletHandler.addServletWithMapping(GameServlet.class, "/chat/*");
        ResourceHandler resourceHandler = new ResourceHandler();
        resourceHandler.setResourceBase("./dune-client/resources/");
        DefaultHandler defaultHandler = new DefaultHandler();
        HandlerList handlers = new HandlerList();
        handlers.setHandlers(new Handler[]{servletHandler, resourceHandler, defaultHandler});
        server.setHandler(handlers);
        server.start();
        server.join();
    }

    public static void main(String[] arg) throws Exception {
        int port = arg.length > 1 ? Integer.parseInt(arg[1]) : 8080;
        Server server = new Server(port);
        ServletHandler servletHandler = new ServletHandler();
        servletHandler.addServletWithMapping(GameServlet.class, "/chat/*");
        ResourceHandler resourceHandler = new ResourceHandler();
        resourceHandler.setResourceBase("dune-client/resources/");
        DefaultHandler defaultHandler = new DefaultHandler();
        HandlerList handlers = new HandlerList();
        handlers.setHandlers(new Handler[]{servletHandler, resourceHandler, defaultHandler});
        server.setHandler(handlers);
        server.start();
        server.join();
    }
