File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes package javax.servlet does not exist Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "package javax.servlet does not exist" Watch "package javax.servlet does not exist" New topic

package javax.servlet does not exist

Bhagya sri

Joined: Nov 09, 2004
Posts: 5

I am new to servlets. I have oracle database installed on my system and when I compile the servlet, I am getting the following error.

package javax.servlet does not exist
package javax.servlet.http does not exist

I have set the classpath but might be wrong. Could somebody tell me how to resole this problem.

Also could you tell me how to set the classpath.

Thanks very much

[ November 09, 2004: Message edited by: blk blk ]
[ November 09, 2004: Message edited by: blk blk ]
Jeff Bosch
Ranch Hand

Joined: Jul 30, 2003
Posts: 805
Hi, <name?> -

Setting classpaths is covered in JavaRanch FAQ: How to set a classpath.

Also, please review the JavaRanch user name policy.

Give a man a fish, he'll eat for one day. Teach a man to fish, he'll drink all your beer.
Cheers, Jeff (SCJP 1.4, SCJD in progress, if you can call that progress...)
Mark Spritzler

Joined: Feb 05, 2001
Posts: 17260

"blk blk"-
Welcome to the JavaRanch! Please adjust your displayed name to meet the

JavaRanch Naming Policy.

You can change it


Thanks! and welcome to the JavaRanch!


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
I agree. Here's the link:
subject: package javax.servlet does not exist