I am configuring the Eclipse version for Java EE to compile Servlets. I have a problem when Eclipse says that "HttpServlet" cannot be resolved because it cannot find Java EE jar files.
I am using Windows XP. I already have Tomcat 6.0. I think the easiest solution would be to link the servlet-api.jar file with the Tomcat installation.
I added it to the Windows CLASSPATH environment variable. Now it looks like this:.: C: \ Program Files \ Java \ jre1.6.0_04 \ lib \ ext \ QTJava.zip; C: \ Program Files \ Apache Software Foundation \ Tomcat 6.0 \ lib \ servlet-api.jar
This did not work. Am I doing something wrong?
What is the best solution?
Y Pgjn
source
share