Get all updates of Java4s
Follow Us: Email Newsletter

How to Set Classpath For Servlet,setting Classpath For servlet-api.jar

Servlets » On Jan 5, 2013 { 3 Comments } By Sivateja

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 :-)

Setting Classpath

  • 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 ♦

Java4s_Author
sivateja@java4s.com
Full Stack( Java/J2EE & UI/UX ) Developer and founder of Java4s - Get It Yourself, A popular Java/J2EE Programming Blog. Sign-up for the Email Newsletter for your daily dose of Java tutorials.

Comments

3 Responses to “How to Set Classpath For Servlet,setting Classpath For servlet-api.jar”
  1. balu says:

    what is oops concept?explain each one?

  2. karthiik says:

    how can i set classpath servlet_api.jar and struts_core_1.3.10.jar

  3. hello sir i am learning java which basic i am follow.

Name*
Mail*
Website



By posting your answer, you agree to our comments policy.
What would you like to learn today?
Browse these popular technologies
Hibernate spring struts Servlets ajax Log4j jQuery Json Core Java Web Services AngularJs
Most Recent Tutorials
Hibernate_Logo Hibernate Recent Posts Spring_Logo Spring Recent Posts Struts_Logo Struts Recent Posts
Useful Links Current & UpComing Tutorials
Upcoming
  Web Services [ SOAP ], JSP
Contact | About Us | Privacy Policy | Advertise With Us

© 2010 - 2016 Java4s - Get It Yourself.
The content is copyrighted to Sivateja Kandula and may not be reproduced on other websites.