title: package javax.servlet does not exist eventhough tomcat lib\servlet-api.jar added in classpath env variable
body: <p>Env details : </p>
  
  <pre><code>OS : Windows 7
  Server : Apache Tomcat 7.x
  </code></pre>
  
  <p>I'm able to see <code>..\tomcat\path\lib\servlet-api.jar in path env variable</code> from command prompt but still, when i compile my servlet, I get following error</p>
  
  <pre><code>"package javax.servlet does not exist"
  </code></pre>
  
  <p>I've gone thru all previous questions and FYI, there is no trailing ; (semicolon)</p>
  
  <p>one more important thing is, I'm able to compile it this way</p>
  
  <pre><code>javac -classpath ..\path\lib\servlet-api.jar MyFirstServlet.java
  </code></pre>
  
  <p>But</p>
  
  <p><code>javac MyFirstServlet.java</code> fails even though <code>..\path\lib\servlet-api.jar</code> is present in path env variable</p>
  
  <p>Thanks in advance for your Suggestions</p>