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 ]
Rajesh <br /> <br />SCJP1.4 SCWCD1.4 SCBCD 1.3 ,SCDJWS(Preparing..)<br /> <br />There is no free will.It is the phenomenon bound by cause and effect.But there is something behind will which is free---Swami Vivekananda...
I tried it too, i still get the same error. In NeatBeans, i created a web application with existing source and compilation succeeds.But i want to compile und edit all the things manuell, without support of any IDE. I still can not find the reason (everything seems to be ok). I should take a break before trying again. I lost too much time for it. :roll:
pie. tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop