Forums Register Login
Pls help..URGENT!!! Reply asap
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.
Hi Sandeep!
Did u set ur class path correctly?check it out.
Good Luck!
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,
Surely ur classpath is not set properly. Include the corresponding .jar (example: servlet.jar) file in ur classpath. Thats it!!
Yes Sandeep u include the servlet.jar file in the classpath.It will work fine.
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.
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,
The harder I work, the luckier I get. -Sam Goldwyn So tiny. - this ad:
Rocket Oven Kickstarter - from the trailboss

This thread has been viewed 744 times.

All times above are in ranch (not your local) time.
The current ranch time is
Jul 20, 2018 23:47:05.