I am reading and exercising Head First Servlets and JSP, and I follow the instruction of the book to create the servlet in chapter 3. But I failed to compile the BeerSelect.java. Could somebody point out what's wrong with my code or compiling? Thanks.
Tomcat5.5.17 was installed at: C:\Apache\Tomcat
I am compiling the code right under the Beer directory
In my first attempt trying to compile the BeerSelect servlet I waste over 15 minutes to figure out what I was doing wrong. (By using the : instead of ; in my Windows XP OS)
Another interesting point is :
If you leave your Tomcat container installed in default directory (C:\Program Files\Apache Software Foundation\Tomcat 5.5) you have to put your -classpath argument within quotes " otherwise your compilation will not work.
This example is not going to work due to a blank space existing in the full classpath name.
I had the same issues. It just stresses *again* how important setting the classpaths are. An interesting site to look at with very helpful tutorials and examples, just to drive the point home would be: