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.
Post by:Preethi Suryam
, Ranch Hand
Hi Sandeep! Did u set ur class path correctly?check it out. Good Luck! Preethi
Post by:Raukutam Sandeep
, Ranch Hand
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
Post by:Saurabh Mittal
, Greenhorn
Surely ur classpath is not set properly. Include the corresponding .jar (example: servlet.jar) file in ur classpath. Thats it!!
Post by:Preethi Suryam
, Ranch Hand
Yes Sandeep u include the servlet.jar file in the classpath.It will work fine. Regards Preethi
Post by:Frank Carver
, Sheriff
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.
Post by:Raukutam Sandeep
, Ranch Hand
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.