Hi!
I am working with Head First
Servlets and
JSP.
I;m in the Mini MVC tutorial chapter.
When i compile the model CoffeeExpert.java, its all fine.
But when i compile the CoffeeSelect.java, it reports that the package com.example.model (one in which the CoffeeExpert is present) is unavailable
These are the command prompt reports when i compile the CoffeeSelect.java
(And i have included the import statement for CoffeeExpert in CoffeeSelect.java)
Can you please help me crack this?
D:\Program Files\Jsp and Servlets\coffeeV1>javac -classpath /"D:\Program Files\apache-tomcat-5.5.26\common\lib\serv
let-api.jar" -d classes src/com/example/web/CoffeeSelect.java
src\com\example\web\CoffeeSelect.java:8: package com.example.model does not exist
import com.example.model.*;
^
src\com\example\web\CoffeeSelect.java:19: cannot find symbol
symbol : class CoffeeExpert
location: class com.example.web.CoffeeSelect
CoffeeExpert ce = new CoffeeExpert();
^
src\com\example\web\CoffeeSelect.java:19: cannot find symbol
symbol : class CoffeeExpert
location: class com.example.web.CoffeeSelect
CoffeeExpert ce = new CoffeeExpert();
^
3 errors
and i'm working with jdk 1.6
thanks a bunch
[edit]Take colour tags out. CR[/edit]