This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Compilation Error - 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 » Beginning Java
Bookmark "Compilation Error - package javax.servlet does not exist" Watch "Compilation Error - package javax.servlet does not exist" New topic
Author

Compilation Error - package javax.servlet does not exist

Karthz Subramaniam
Greenhorn

Joined: Oct 25, 2007
Posts: 3
Hi,

I get the below error while compiling my servlet.

package javax.servlet does not exist

Any idea of how to include this package?

Thanks.
abhijit sane
Greenhorn

Joined: Dec 19, 2007
Posts: 12
hi,
please check your import statements in code.
and check about the classpath.
- Abhijit Sane
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

How are you compiling your code? On the command line or using an IDE?
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14688
    
  16

Compiling Servlets


[My Blog]
All roads lead to JavaRanch
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Compilation Error - package javax.servlet does not exist
 
It's not a secret anymore!