>>but there r some settings I think should be altered like the CLASSPATH or something like this... Iam not sure <<
The answer is : it depends on what servlet engine you're using. I mean the settings.
I'm using Resin (www.caucho.com), either in Linux or Windows. There's nothing about CLASSPATH need to be altered. But If you create a web-appz (that's how we call a clloection of servlet, JSP, and some other static resource altogether) and want to deploy it in your servlet engine (such as Resin) you need to create a simple descriptor file for that web-appz. It's typically defines mapping between servlet url (as it will be seen in the URL typed by user) and the class of that particular servlet. In earlier days of servlet, the format for this descriptor is different from one servlet engine to another servlet engine. deployment nightmare. But now they're (the have) converge to one standardized format, in XML. For more info , you should try installing one servlet engine (Tomcat, or Resin,etc), read the manual, code, compile, get it run. Good luck.