title: How to compile a servlet for Tomcat in command line? error: package javax.servlet does not exist
body: <p>I've got this error message when I compiled a Java file :</p>
  
  <pre><code>error: package javax.servlet does not exist
  </code></pre>
  
  <p>I installed a big .SH file for Jave EE SDK, a Java version gives me this:</p>
  
  <pre><code>java version "1.7.0_10"
  Java(TM) SE Runtime Environment (build 1.7.0_10-b18)
  Java HotSpot(TM) 64-Bit Server VM (build 23.6-b04, mixed mode)
  </code></pre>
  
  <p>Do I need to install something else?</p>
  
  <p>I am using Tomcat 7 as a Servlet Container located in <code>/Library/Tomcat/</code>
  and simple text editor with the command line.</p>