This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Pls help..URGENT!!!! Reply asap

 
Raukutam Sandeep
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
when i tried to import javax.servlet.*;
it is giving compile time error, that the package not found in import.
I downloaded the servlet class files from sun's website and extracted all the files.
I'm unable to rectify this error.
Puhuleese help me, as soon as possible.
regds,
Sandeep.
 
Preethi Suryam
Ranch Hand
Posts: 92
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Sandeep!
Did u set ur class path correctly?check it out.
Good Luck!
Preethi
 
Raukutam Sandeep
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi preethi,

to which file i have set the classpath.
This error is occuring only when i import javax.servlet.*;
Would u pls explain me, to which file i sould set the classpath?
Pls Reply asap,
thanx,
Sandeep
 
Saurabh Mittal
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Surely ur classpath is not set properly. Include the corresponding .jar (example: servlet.jar) file in ur classpath. Thats it!!
 
Preethi Suryam
Ranch Hand
Posts: 92
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes Sandeep u include the servlet.jar file in the classpath.It will work fine.
Regards
Preethi
 
Frank Carver
Sheriff
Posts: 6920
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please note that The Java Ranch has a naming policy, described here and "saurabh" is not a valid name. Please choose one which meets the requirements.
Thanks.
 
Raukutam Sandeep
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi everybody,
thanx for u'r response,
Now it is working fine
(A small jhatka: i didn't set the classpath as u said, but yet it is working fine.How is it?)
Thanx again, for u'r immediate response,
regds,
Sandeep.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic