This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
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