Javac erroring out when compiling Servlet libraries <p>I am using ubuntu and I have set my paths to be the following:</p> <pre><code>JAVA_HOME=/usr/local/jdk1.6.0_24 export CLASSPATH=/usr/local/tomcat/lib export JAVA_HOME </code></pre> <p>I thought that would put the servlet libraries in the compile path, but I am still getting compile errors like this:</p> <pre><code>package javax.servlet does not exist [javac] import javax.servlet.ServletException; </code></pre> <p>Any ideas how to fix this or what I am doing wrong? The general Java libraries seem to be working fine.</p>