Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Compilation Error - package javax.servlet does not exist

 
Karthz Subramaniam
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
please check your import statements in code.
and check about the classpath.
- Abhijit Sane
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How are you compiling your code? On the command line or using an IDE?
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Compiling Servlets
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic