Hi!
I'm going through Head First
Servlets &
JSP book and I came across a question that I hope someone can help me understand. I'm sure it is quite simple.
The book sas to use the following statement to compile the servlet: javac -classpath /Tomcat/common/lib/servlet-api.jar:classes:. -d classes src/com/example/web/BeerSelect.java
However, it doesn't compile. I get several errors that javax.servlet.* does not exist, etc.
This statement works just fine: javac -classpath /Tomcat/common/lib/servlet-api.jar -d classes src/com/example/web/BeerSelect.java
You'll notice that I dropped the ":classes." from the statement.
Can someone help explain what the ":classes." is suppose to do?
Thanks,
Andrew