import com.phonoforce.tramory.rest.Application; import com.sun.net.httpserver.HttpServer; import org.glassfish.jersey.jdkhttp.JdkHttpServerFactory; import org.glassfish.jersey.server.ResourceConfig; import java.io.IOException; import java.net.URI; public class Main { public static void main(String[] args) throws IOException { ResourceConfig rc = new ResourceConfig(Application.class); HttpServer server = JdkHttpServerFactory.createHttpServer(URI.create("http://localhost:8080"), rc); server.start(); } }