Question: I know it might sound weird, but I wrote a web server without knowing how to deploy it and run it, so how do I do it in eclipse? (and please specify the eclipse version)
thanks

Answer: 
The webserver is implemented in java? Then to run it just launch it as any other java program (right click on main class, 'Run As'->'Java Application').

You can deploy it as runnable jar. Right click on the project, 'Export As...'. Choose 'Java'->'Runnable JAR file'. Follow the wizard instructions. If you have exported properly everyone can launch your webserver by an double click on the jar (as long as java is installed).

My Eclipse-Version is 3.5, but that should not matter. This functionality is implemented since ... don't know. Long ;).
You need to write an [Eclipse plugin](http://www.eclipsepluginsite.com/) as well. [Some](http://www.eclipsetotale.com/tomcatPlugin.html#A3) of [them](https://glassfishplugins.dev.java.net/source/browse/glassfishplugins/) are open source, you may want to take a look.