title: package javax.servlet.annotation does not exist
body: <p>I have some of the following imports defined like the following as shown in the image below.</p>
  
  <p><img src="https://i.stack.imgur.com/kpTl7.jpg" alt="enter image description here"></p>
  
  <p>I am wondering, how can I eliminate <code>"package javax.servlet.annotation does not exist"</code> error. I am currently working on "Java Web" type of project in Netbeans 7.4. .</p>
  
  <p>Secondly, I believe , the above error is the reason behind my second error related to "WebServlet" which is shown in the image above (line #44).</p>
  
  <p>Please let me know how to fix this problem.</p>
  
  <p>Read some other posts <a href="http://www.coderanch.com/t/550030/Servlets/java/package-javax-servlet-annotation-exist" rel="noreferrer">like this one</a>, but I believe they are not using Netbeans and not sure if I should update tomcat as mentioned in the post. The location of the servlet api jar file is as shown in the image below:</p>
  
  <p><img src="https://i.stack.imgur.com/918JP.png" alt="enter image description here"></p>