my dog learned polymorphism*
The moose likes Servlets and the fly likes Pls help..URGENT!!!! Reply asap Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Pls help..URGENT!!!! Reply asap" Watch "Pls help..URGENT!!!! Reply asap" New topic
Author

Pls help..URGENT!!!! Reply asap

Raukutam Sandeep
Ranch Hand

Joined: Nov 15, 2000
Posts: 61
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

Joined: Nov 17, 2000
Posts: 92
Hi Sandeep!
Did u set ur class path correctly?check it out.
Good Luck!
Preethi
Raukutam Sandeep
Ranch Hand

Joined: Nov 15, 2000
Posts: 61
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

Joined: Dec 19, 2006
Posts: 1
Surely ur classpath is not set properly. Include the corresponding .jar (example: servlet.jar) file in ur classpath. Thats it!!
Preethi Suryam
Ranch Hand

Joined: Nov 17, 2000
Posts: 92
Yes Sandeep u include the servlet.jar file in the classpath.It will work fine.
Regards
Preethi
Frank Carver
Sheriff

Joined: Jan 07, 1999
Posts: 6920
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.

Read about me at frankcarver.me ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
Raukutam Sandeep
Ranch Hand

Joined: Nov 15, 2000
Posts: 61
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Pls help..URGENT!!!! Reply asap
 
Similar Threads
hi servlet jar file
How do I put my class in a package and compile.
Import Error
compilation problem
How to test servlets?