How to Set Classpath For Servlet,setting Classpath For servlet-api.jar
As i told you in the previous article, we should set servlet-api.jar in our class path, in order to work with servlet applications. We cannot run servlet applications if you didn’t set servlet-api.jar.
Where Can You Download servlet-api.jar
- You can download servlet-api.jar by searching in Google
- Or just open your Tomcat installation directory and search for lib folder –> there you can find servlet-api.jar
- Open command prompt
- Type this command, set classpath=”C:\Program Files (x86)\apache-tomcat-7.0.33\lib”;
- Thats it
But friends, don’t worry we are going to run the servlet application in Eclipse so things are very very easy, i will show you in the first program.
You Might Also Like
♦ About Author ♦