This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Originally posted by Rajneesh Joshi: Ok I had set the right classpath but it wouldn't compile because I hadn't restarted the computer. Weird! After restarting it compiled.
Normally you would just need to close your command window and open a new one for the changes to appear.
Joined: Oct 13, 2005
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.