• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Help

 
Chris Goh
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
TestDispatcherServlet1.java:4: package javax.servlet does not exist
import javax.servlet.*;
TestDispatcherServlet1.java:5: package javax.servlet.http does not exist
import javax.servlet.http.*;
can anyone tell me what is wrong with it?
-Newbie-
 
Malhar Barai
Author
Ranch Hand
Posts: 399
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hv u set the CLASSPATH to where yr "javax" package exists...
check it...might help..
else get back ASAP...
good luck
malhar
 
Chris Goh
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
erm... where would the classpath be normally pointed?
is it somewhere in the tomcat folders?
 
Axel Janssen
Ranch Hand
Posts: 2166
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Chris,
servlet.jar is in:
%Tomcat%\lib (Tomcat 3.2)
%Tomcat%\common\lib (Tomcat 4.0)
In Windows you change your Classpath variable simple with:
Set Classpath=%Classpath%;C:\tomcat\lib\servlet.jar;.
(in my case using the Tomcat3.2 which is in C:\tomcat)
You may check your class variable by typing set in the Dos-Console.
Axel
 
Chris Goh
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks!!!
I can compile my servlets!!!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic