Can anybody tell me the path settings to compile a servlet?I have installed j2sdk1.4.1 and Apache tomcat web server?

Showing Answers 1 - 3 of 3 Answers

barad

  • Nov 17th, 2006
 

hi

    if u want to compile a servlet program then you need to set the classpath to servlet-api.jar file,  this classpath can be set into two ways

1.   you search for the servlet-api.jar file and goto mycomputer properties then you need to write .servlet-api.jar;

2.  you copy the servlet-api.jar file and put that file parallel to out current servlet then you go to command prompt type

>set classpath=%classpath%;servlet-api.jar;.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions