I am running into the same problem, trying to set up the simple MVC app from the Head First
JSP book. I get the same pile of compilation errors about "package javax.servlet does not exist" etc.
Here's my compile command (just like the book):
c:\dev\projects\beerV1>javac -classpath c:\tomcat\common\lib\servlet-api.jar:classes:. -d classes src/com/example/web/BeerSelect.java
Here's my CLASSPATH environmental variable:
.;C:\tomcat\common\lib;C:\dev\jdk142_03\lib;C:\Sun\AppServer\lib
Here's my PATH:
C:\Sun\AppServer\bin;C:\dev\jdk142_03\bin;C:\dev\jdk142_03\lib;C:\tomcat\common\lib;C:\tomcat\bin
I've spent a few hours throwing different things into my env. variables, changing compiler flags, etc., but no dice.
Can anyone help, please?