Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
Bartenders:
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

Developing servlets using Eclipse 3.3.2  RSS feed

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to develop Servlets using Eclipse 3.3.2 but i can not recognise the httpservlet class itself. I have to add the servlet-api.jar file but do not know how to do it. I have the jar file in the Tomcat application server i am using. just help me out how to add the Servlet-api.jar in the eclipse.
 
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just integrate Tomcat in Eclipse through servers view. Then associate it with your dynamic web project. This way Eclipse will take the API's automagically in the build path.
 
author & internet detective
Posts: 39283
727
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you know we have a forum specifically for IDE questions? I'll move this for you. Don't worry - the link will still work from the original forum.

[edited to fix typo]
 
Mainak Moitra Moitra
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot for the help. But i solved the problem physically adding the library file into dynamic web project
 
Bauke Scholtz
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Associate it with your dynamic web project. This way Eclipse will take the API's automagically in the build path.
 
Bauke Scholtz
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Mainak Moitra Moitra wrote:Thanks a lot for the help. But i solved the problem physically adding the library file into dynamic web project


This is a workaround, not a solution. Too bad.

Just associate the appserver with your webproject. On create of the webproject, select the integrated appserver from the list. Or in the properties of an existing webproject, select the integrated appserver from the list. That's all.
 
Creativity is allowing yourself to make mistakes; art is knowing which ones to keep. Keep this tiny ad:
how do I do my own kindle-like thing - without amazon
https://coderanch.com/t/711421/engineering/kindle-amazon
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!