• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Help

 
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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-
 
Author
Posts: 399
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
erm... where would the classpath be normally pointed?
is it somewhere in the tomcat folders?
 
Ranch Hand
Posts: 2166
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks!!!
I can compile my servlets!!!
 
Don't mess with me you fool! I'm cooking with gas! Here, read this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic