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

[2125 byte] By [New_Kida] at [2007-11-27 4:46:03]
# 1
The purpose of the server is that the request send a path, and from the path it has to write the file to the users temp folderIs it not possible if v run as a jar file?
New_Kida at 2007-7-12 9:58:33 > top of Java-index,Java Essentials,Java Programming...
# 2
Hey I solved it..I forgot to add the main class in the manifest file The application never started !!
New_Kida at 2007-7-12 9:58:33 > top of Java-index,Java Essentials,Java Programming...