Running a simple webserver
Hi
I've created a simple webserver
import java.net.ServerSocket;
publicclass HTTPServerimplements Runnable{
ServerSocket ss=null;
public HTTPServer()
{
Thread th=new Thread(this);
th.start();
}//eom
publicstaticvoid main(String argv[])
{
new HTTPServer();
}//eom
publicvoid run()
{
try{
ss=new ServerSocket(8080);
}
catch(Exception e)
{
}
while(true)
{
try
{
new HTTPClient(ss.accept());
}
catch(Exception e1)
{
}
}
}//eom
}///
Is it possible to run it without tomcat or jboss like say a jar file.
Actually i run it as a jar file but the server is not responding

