• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

servlet compilation

 
syam
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i had jsdk2.0 with me . but during the compilation an error is coming that class javax.servlet/http not found in import . i set the classpath as c:\jsdk2.0\lib\jsdk.jar also. even then iam getting the same problem . i will be thankful to u if u solve this one.
 
Karthik Guru
Ranch Hand
Posts: 1209
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
is coming that class javax.servlet/http not found in import .
>> r u importing javax.servlet.http.*? HttpServlet class is in
>>javax.servlet.http package.
>>it does'nt seem so. Can u check that please
karthik.
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
True.
You need either servlet.jar or j2ee.jar or some other jar that includes the javax.servlet package in your classpath.
dave.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic