i had posted my problem earlier
the answer that i got was
Also include F:\project\Beer-v1\classes to the classpath.
but still my servlet isn't compiling
-----------------------------------------------------------------
i have the book for SCWCD (head first servlets & jsp)
in chapter 3 of the book on pg-84,85
the servlet version 2 is given and i have compilation problems with it
i have done all the necessary things
the servlet version 1 is running fine
i have this directory in windows vista
F:\project\Beer-v1\src\com\example\model (have BeerExpert.java)
and
F:\project\Beer-v1\src\com\example\web (have BeerSelect.java)
as given in the book
my classpath is also set fine and all the programs are running fine(servlets and other java programs)
but compilation problem is there for BeerSelect.java
when i do
F:\project\Beer-v1\src\com\example\web>javac -cp "c:\Program files\Apache Software Foundation\Tomcat 6.0\lib\servlet-api.jar" BeerSelect.java
following thing is shown
BeerSelect.java:3: package com.example.model does not exist
import com.example.model.*;
^
BeerSelect.java:19: cannot find symbol
symbol : class BeerExpert
location: class com.example.BeerSelect
BeerExpert be = new BeerExpert();
^
BeerSelect.java:19: cannot find symbol
symbol : class BeerExpert
location: class com.example.BeerSelect
BeerExpert be = new BeerExpert();
^
3 errors
the answer that i got was
Also include F:\project\Beer-v1\classes to the classpath.
but still my servlet isn't compiling
-----------------------------------------------------------------
i have the book for SCWCD (head first servlets & jsp)
in chapter 3 of the book on pg-84,85
the servlet version 2 is given and i have compilation problems with it
i have done all the necessary things
the servlet version 1 is running fine
i have this directory in windows vista
F:\project\Beer-v1\src\com\example\model (have BeerExpert.java)
and
F:\project\Beer-v1\src\com\example\web (have BeerSelect.java)
as given in the book
my classpath is also set fine and all the programs are running fine(servlets and other java programs)
but compilation problem is there for BeerSelect.java
when i do
F:\project\Beer-v1\src\com\example\web>javac -cp "c:\Program files\Apache Software Foundation\Tomcat 6.0\lib\servlet-api.jar" BeerSelect.java
following thing is shown
BeerSelect.java:3: package com.example.model does not exist
import com.example.model.*;
^
BeerSelect.java:19: cannot find symbol
symbol : class BeerExpert
location: class com.example.BeerSelect
BeerExpert be = new BeerExpert();
^
BeerSelect.java:19: cannot find symbol
symbol : class BeerExpert
location: class com.example.BeerSelect
BeerExpert be = new BeerExpert();
^
3 errors