I'm having trouble compiling my servlet, because it says the servlet classes can't be found.
CreateAccount.java:2: package javax.servlet does not exist
import javax.servlet.*;
^
I googled a bunch and most people with this problem had their CLASSPATH set incorrectly. Here is the result when I echo my classpath:
> echo $CLASSPATH .:/usr/local/java/bin:/usr/local/tomcat/apache-tomcat-6.0.18/lib/servlet-api.jar
I copy and paste the path to servlet-api.jar listed in it, /usr/local/tomcat/apache-tomcat-6.0.18/lib/, and I browse to that directory and sure enough the jar file is there.
> ls
annotations-api.jar catalina-ha.jar catalina-tribes.jar jasper-el.jar jasper-jdt.jar servlet-api.jar tomcat-dbcp.jar tomcat-i18n-fr.jar
catalina-ant.jar catalina.jar el-api.jar jasper.jar jsp-api.jar tomcat-coyote.jar tomcat-i18n-es.jar tomcat-i18n-ja.jar
So I'm not sure why it's telling the classes can't be found, since it should be pointing to them. What am I forgetting here?