I use JDK7,JRE7 and Tomcat 7. I already mentioned the classpath of Tomcat library in command prompt. But when compiling the servlet I got an error:
package javax.servlet does not exist
Please help. Thanks in advance.
packageservletstomcat
I use JDK7,JRE7 and Tomcat 7. I already mentioned the classpath of Tomcat library in command prompt. But when compiling the servlet I got an error:
package javax.servlet does not exist
Please help. Thanks in advance.
Best Answer
I tested your example and the compiler error was shown when you have mispelling in the path.
Command:
Error:
Command:
Now it is ok.
So check carefully your path to the Tomcat (I think than it is lack of some spaces):
Probably it should be: