File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes can't  import java.servlet.* Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "can Watch "can New topic

can't import java.servlet.*


Joined: Aug 22, 2004
Posts: 1
i have servlet dev kit 2.1 and jdk 1.4. while complie i am getting this error message package java.servlet doesn't exit.
why is it that.
I have set classpath C:\servlet.jar; and path as C:\jdk\bin;
If some one have any solution to this problem please mail me.
. I it that my servlet.jar must have been corrupt and if yes please tell me from where i can download whole servlet dev kit.

Julian Kennedy
Ranch Hand

Joined: Aug 02, 2004
Posts: 823
It's javax.servlet, dude and javax.servlet.http. Always read the label!

Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15302


Welcome to Javaranch! We don't have too many rules around here but we do have a Naming Policy. Please adjust your display name acordingly. Specifically we require a first and last name. You can change your display name here.

Thanks a lot and have fun learning Java.

GenRocket - Experts at Building Test Data
I agree. Here's the link:
subject: can't import java.servlet.*
It's not a secret anymore!