give me out with the proper solution ,that how to set the environmental variables and where to save up with the files, what extra files i have to create...etc what all stuff is necessary.............please sir i m begging in front of you.
thank you , as per your saying i now understand that we have to save our WAR file in TOMCAT_HOME\webapps\ .and after doin this it have worked , btu sorry to disturb you please tell me that how to create WAR file in tomcat.
creating a WAR file is not compulsary. however you can make a war file using jar utility. And make sure your TOMCAT server is running before you try to run your servlet. You can start your server by running startup.bat from bin directory. Before that you have to save the JAVA_HOME variable in the environment variables, which the home of your JDK.