• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HFSJ Page 84

 
Lily Boland
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello everyone,

I just start reading this book and I am having trouble compiling the servlet on P84. The Tomcat50 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
===============================================

I do have this path set as requested by examples in previous pages.

Can anyone help?

Thank you!!

-Lily
 
Lily Boland
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Never mind. It works now. Thanks.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic