I didn't set the classpath using the command window but through the advanced options in the system properties window. When I set the classpath for JDK using this window, normal Java programs would not compile and I had to restart. Same thing with the servlet. That's why I said: "Weird!"
I have another problem: I wrote the servlet and its deployment descriptor (web.xml), and also the HTML page to anchor the servlet. However when I open the page http://localhost:8080/
I don't see anything. What could be the problem?
I set the ANT_HOME and TOMCAT_HOME variables already.