Thanks for reply. Sorry I joined JavaRanch today, so I was not aware of the rules.
My model class is in "D:\MyProjects\beerV1\src\com\example\model" directory
and the Servlet is in "D:\MyProjects\beerV1\src\com\example\web" directory.
My current working directory on Windows command prompt is "D:\MyProjects\beerV1".
To compile the model class I typed on the command prompt
javac -d classes src\com\example\model\BeerExpert.java
The class is compiled but I got the warnings that I mentioned in the first post.
Now to compile the servlet, from the current working directory, i.e "D:\MyProjects\beerV1" I type the following on the command prompt
javac -classpath C:\Program Files\Apache Software Foundation\Tomcat 5.5\common\lib\servlet-api.jar;classes:. -d classes src\com\example\web\BeerSelect.java
And I got the errors that I wrote in my first post. Please help