packageservices;importcom.sun.jersey.api.container.httpserver.HttpServerFactory;importcom.sun.net.httpserver.HttpServer;importjava.io.IOException;publicclassStartServer{privatestaticfinalStringHOST="localhost";privatestaticfinalintPORT=1337;publicstaticvoidmain(String[]args)throwsIOException{HttpServerserver=HttpServerFactory.create("http://"+HOST+":"+PORT+"/");server.start();System.out.println("Server running!");System.out.println("Server started on: http://"+HOST+":"+PORT);System.out.println("Hit return to stop...");System.in.read();System.out.println("Stopping server");server.stop(0);System.out.println("Server stopped");}}