title: package javax.servlet does not exist on Tomcat
body: <p>I am writing JApplet in Netbeans. My applet is working, so I decide to add servlet because I want to have log in/out. When I added servlet to my project as follows:</p>
  
  <pre><code>import javax.servlet.ServletException;
  import javax.servlet.http.HttpServlet;
  import javax.servlet.http.HttpServletRequest;
  import javax.servlet.http.HttpServletResponse;
  </code></pre>
  
  <p>I had the following errors:</p>
  
  <pre><code>error: package javax.servlet does not exist 
  import javax.servlet.ServletException;
  error: package javax.servlet.http does not exist
  import javax.servlet.http.HttpServlet;
  </code></pre>
  
  <p>Apache Tomcat is working.</p>