HI there i am trying to compile one
servlet which is using a class in a package.
The class is already compiled but this servlet is not compiling
i have this file in com.example.web
and the BeerExpert in com.example.model
i checked there is no spelling error.
the exact error is below down the code
ERROR:
javac -classpath /home/rewati/Downloads/apache-tomcat-6.0.26/lib/servlet-api.jar:. -d classes src/com/example/web/BeerSelect.java
src/com/example/web/BeerSelect.java:3: package com.example.model does not exist
import com.example.model.*;
^
src/com/example/web/BeerSelect.java:15: cannot find symbol
symbol : class BeerExpert
location: class com.example.web.BeerSelect
BeerExpert be = new BeerExpert();
^
src/com/example/web/BeerSelect.java:15: cannot find symbol
symbol : class BeerExpert
location: class com.example.web.BeerSelect
BeerExpert be = new BeerExpert();
^
3 errors