Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

can't import java.servlet.*

 
nvintt
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 823
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's javax.servlet, dude and javax.servlet.http. Always read the label!

Jules
 
Gregg Bolinger
GenRocket Founder
Ranch Hand
Posts: 15302
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic