All Downloads are FREE. Search and download functionalities are using the official Maven repository.

li.rudin.mavenjs.server.Main Maven / Gradle / Ivy

The newest version!
package li.rudin.mavenjs.server;

import li.rudin.mavenjs.servlet.Servlet;



public class Main {

	/**
	 * @param args
	 * @throws Exception 
	 */
	public static void main(String[] args) throws Exception
	{

		if (args.length != 1)
		{
			System.out.println("java -jar server [PORT]");
		}
		
		HTTPServer server = new HTTPServer( Integer.parseInt(args[0]) );
		server.map(Servlet.class, "/*");
		server.start();
		
		System.in.read();
		
		server.stop();
		
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy