/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package webservertest; import sun.tests.helpers.WebServer; /** * * @author DTITOV */ public class WebServerTest { /** * @param args the command line arguments */ public static void main(String[] args) { System.out.println(System.getProperty("java.version")); for (int i = 1; i < 100; i++) { System.out.println("Starting server " + i); try { WebServer server = WebServer.startServer(); server.shutdown(); } catch (Exception ex) { ex.printStackTrace(); } } } }