Hello everyone,
I just started reading HFSJ book and I am having trouble compiling the
servlet on P84.
Tomcat 5.5 is setup on my machine and the previous examples are working properly. But for this one, with the 'import com.example.model.*;' line added, I've got a compiler error -
========================================
src\com\example\web\BeerSelect.java:3: package com.example.model does not exist
import com.example.model.*;
^
src\com\example\web\BeerSelect.java:20: cannot resolve symbol
symbol : class BeerExpert
location: class com.example.web.BeerSelect
BeerExpert be = new BeerExpert();
^
src\com\example\web\BeerSelect.java:20: cannot resolve symbol
symbol : class BeerExpert
location: class com.example.web.BeerSelect
BeerExpert be = new BeerExpert();
^
3 errors
===============================================
and also for the example between pages 170-180, that is the Dog example, I get the same error like the one above when I compile the MyServletContextListener.java. that is "the Dog class was not found" error.
What should I import to make the MyServletContextListener see the Dog class. Can anybody help?
A fast reply is much appreciated.
Thank you!!