title: Using Intellij Community Edition, getting compile error "java: package javax.servlet.http does not exist"
body: <p>I am using Intellij Community Edition to build a simple Maven project web app. It's getting compile errors:</p>
  
  <blockquote>
    <p>java: package javax.servlet.http does not exist</p>
    
    <p>java: cannot find symbol   symbol: class HttpServlet</p>
    
    <p>java: cannot find symbol   symbol:   class HttpServletRequest</p>
    
    <p>java: cannot find symbol   symbol:   class HttpServletResponse</p>
  </blockquote>
  
  <p>I used to use Jave SE. I have downloaded Jave EE. All it told me to do was unzip (I guess that means it's installed). I'm also using Tomcat 6.0.53 and Maven 3.5.0</p>
  
  <p>Other similar questions on here said to add dependencies but they did not work for me. </p>
  
  <p>My code is attached:</p>
  
  <pre><code>package org.mycompany.myname;
  
  import javax.servlet.http.*;
  
  import java.io.IOException;
  
  public class HelloServlet extends HttpServlet {
  public void doGet(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse) throws IOException
  {
      httpServletResponse.getWriter().print("Test running ...");
  }
  }
  </code></pre>