title: package javax.servlet.http does not exist but servlet-api.jar does
body: <p>I've got my GlassFish 3.1.2 web server working fine with Java SE 1.6 for regular Java POJOs. The JAVA_HOME, JAVA_PATH, and JRE_HOME variables are set correctly. I'm using Linux CentOS6.2 and I'm doing all the java work from vi and the command line (e.g. no frameworks or tools like Spring, Eclipse, etc.).</p>
  
  <p>Now I want to use a Java Servlet, and I'm getting errors such as:</p>
  
  <pre><code>package javax.servlet.http does not exist
  </code></pre>
  
  <p>I assumed that since my environment paths are set correctly, that the servlet files would be visible to during compile. Apparently this isn't the case. </p>
  
  <p>Anyone know how to fix this error? If were to hunt around on my linux directories, what filename am I looking to find for the servlet jar file? Anyone know where this file is located starting from JAVA_HOME for JDK 1.6? </p>
  
  <p>Or, are the servlet-related files not part of jdk 1.6, and need to be downloaded installed separately?</p>
  
  <p>UPDATE:  </p>
  
  <p>If I type <code>locate servlet-api.jar</code> from my linux prompt, it returns a path inside my GlassFish installation directories (e.g. <code>~/glassfish3/glassfish/modules/javax.servlet-api.jar</code>). Thus, as mentioned below, it's part of the GlassFish installation. </p>