permaculture playing cards*
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "can Watch "can New topic
Author

can't import java.servlet.*

nvintt
Greenhorn

Joined: Aug 22, 2004
Posts: 1
hi,
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.
nvintt@yahoo.com
. 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!

Jules
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299
    
    6

nvintt

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: http://aspose.com/file-tools
 
subject: can't import java.servlet.*
 
Similar Threads
classpath issue
Servlet class file in tomcat4.0.6
fresher
error compiling a servlet
compilation of Servlets.....