importcom.sun.jersey.api.container.httpserver.HttpServerFactory;importcom.sun.net.httpserver.HttpServer;importjava.io.IOException;/** * Created by civi on 26/04/16. */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");}}