Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

problem compiling Servlets

  Asked By: Ketan    Date: May 06    Category: Java    Views: 601
  

I am not able to compile servlets as the compiler is
not able to include javax.servlet.* and
javax.servlet.http.* although i have installed jsdk2.0
and set classpath as /jsdk2.0/lib/jsdk.jar

Share: 

 

4 Answers Found

 
Answer #1    Answered By: Erika Evans     Answered On: May 06

you should install J2EE package (j2ee.jar) to use the javax.servlet.*
classes...

 
Answer #2    Answered By: Jermaine Powell     Answered On: May 06

or if you´re using Tomcat you may include  in your classpath
tomcat-install/common/lib/servlet-api.jar

 
Answer #3    Answered By: Frank Butler     Answered On: May 06

You have to add servlet.jar in the classpath.

 
Answer #4    Answered By: Francis Riley     Answered On: May 06

Try to run this through the Server like websphere,
Java Server etc. in the Explorer instead at the
prompt.

 
Didn't find what you were looking for? Find more on problem compiling Servlets Or get search suggestion and latest updates.




Tagged: