Hi,
I have started to read the Head First
Servlets &
JSP and trying to deploy the web application in MVC Tutorial (Chapter 3). I get the following error when i want to compile:
D:\headfirstservlet\coffeeV1>javac -classpath c:\programme\apache\tomcat\common\lib\servlet-api.jar -d classes src\com\example\web\CoffeeSelect.java
src\com\example\web\CoffeeSelect.java:3: package com.example.model does not exist
import com.example.model.*;
^
src\com\example\web\CoffeeSelect.java:20: cannot find symbol
symbol : class CoffeeExpert
location: class com.example.web.CoffeeSelect
CoffeeExpert ce=new CoffeeExpert();
^
src\com\example\web\CoffeeSelect.java:20: cannot find symbol
symbol : class CoffeeExpert
location: class com.example.web.CoffeeSelect
CoffeeExpert ce=new CoffeeExpert();
^
3 errors
In CoffeeSelect.java i have
package com.example.web; and
import com.example.model.*; statements.
In CoffeeExpert.java i have
package com.example.model; statement.
Why does my CoffeeSelect.java not compile? What i miss?
Thanks for any help.
[ December 15, 2005: Message edited by: Kudret Serin ]