Wrox Home  
Search P2P Archive for: Go

  Return to Index  

servlets thread: "cannot resolve symbol"


Message #1 by "henry bonghanoy" <henzki@e...> on Fri, 23 Mar 2001 07:36:18
hi
set classpath for servlet.jar and other *.jar files in
your bin folder like
 SET CLASSPATH=c:/folderto/servlet.jar [If you have
win97/98]
hope it helps

--- Danny Ayers <danny@p...> wrote:
> Hi,
> This looks very like a classpath problem - make sure
> you've included :
> 
> import javax.servlet.http.*;
> 
> and that the servlets package is on your classpath
> (depends on JDK version -
> check doc)
> 
> Cheers,
> Danny.
> 
> ---
> Danny Ayers
> http://www.isacat.net
> 
> <- -----Original Message-----
> <- From: bounce-servlets-513222@p...
> <- [mailto:bounce-servlets-513222@p...]On
> Behalf Of huma hamid
> <- Sent: 27 March 2001 03:21
> <- To: Servlets
> <- Subject: [servlets] Re: "cannot resolve symbol"
> <-
> <-
> <- Hi Henry
> <-
> <- I just wanted to know did you find out the
> solution to
> <- your problem(cannot resolve symbol) if you have
> -pls
> <- let me know know hoe coz i am having the same
> problem
> <-
> <- Thanks I will be waiting 4 ur reply.
> <- Huma
> <- --- henry bonghanoy <henzki@e...>
> wrote:
> <- >
> <- > hi all,
> <- >
> <- > i have small problem. when i compile my servlet
> an
> <- > errors appeared most of
> <- > them cannot resolve symbol..
> <- >   i need your help guys..
> <- >
> <- > public class HitCounter extends HttpServlet{
> <- >                                 ^
> <- > HitCounter.java:18: cannot resolve symbol
> <- > symbol  : class HttpServletRequest
> <- > location: class HitCounter
> <- > public void doGet(HttpServletRequest request,
> <- > HttpServletResponse response)
> <- >                   ^
> <- > HitCounter.java:18: cannot resolve symbol
> <- > symbol  : class HttpServletResponse
> <- > location: class HitCounter
> <- > public void doGet(HttpServletRequest request,
> <- > HttpServletResponse response)
> <- >                                               ^
> <- > HitCounter.java:11: cannot resolve symbol
> <- > symbol  : variable kFilename
> <- > location: class HitCounter
> <- >     BufferedReader in= new BufferedReader(new
> <- > FileReader(kFilename));
> <- >
> <- >     ^
> <- > HitCounter.java:18: missing method body, or
> declare
> <- > abstract
> <- > public void doGet(HttpServletRequest request,
> <- > HttpServletResponse response)
> <- >             ^
> <- >   Any brilliant idea!..
> <- >
> <- >
> <- >  thanks and regards to all
> <- >  henry
> <- >
> <- >
>

  Return to Index