Hope most of you all might have worked with the BeerSelect.java and BeerExpert.java examples from HFS.
I was doing well until I compiled the BeerExpert.java,but when I made the changes in BeerSelect.java as given on page 84,and when I compiled it on cmd prompt I get :
C:\MyProjects\beerV1>javac -d classes src\com\example\web\BeerSelect.java
src\com\example\web\BeerSelect.java:2: package com.example.model does not exist
import com.example.model.*;
^
src\com\example\web\BeerSelect.java:16: cannot resolve symbol
symbol : class BeerExpert
location: class com.example.web.BeerSelect
BeerExpert be = new BeerExpert();
^
src\com\example\web\BeerSelect.java:16: cannot resolve symbol
symbol : class BeerExpert
location: class com.example.web.BeerSelect
BeerExpert be = new BeerExpert();
^
src\com\example\web\BeerSelect.java:19: cannot resolve symbol
symbol : variable it
location: class com.example.web.BeerSelect
while(it.hasNext()) {
^
src\com\example\web\BeerSelect.java:20: cannot resolve symbol
symbol : variable it
location: class com.example.web.BeerSelect
out.print("<br>try : " + it.next());
^
5 errors
I would like to mention that I had created a dummy workspace in my
IDE which has the same flow of the packages and
java files as given in HFS,they work well.
Then why am I facing this problem........where am I going wrong.
Thanks.