I was going through Head First Servlets book and found myself stuck in the BeerSelect.java example.
To compile the servlet following code is being used:
% javac -classpath /Users/bert/Applications2/tomcat/common/lib/servlet-api.jar:classes:. -d classes src/com/example/web/BeerSelect.java
I am using Windows XP and my Tomcat directory's path is this:
C:/Program Files/Apache Software Foundation/Tomcat 5.5/common/lib;
So I am using this code in the command prompt to compile, but it generates an error:
C:\beerV1>javac -classpath /Program Files/Apache Software Foundation/Tomcat 5.5/common/lib//servlet-api.jar:classes:. -d classes src/com/example/web/BeerSelect.java