aspose file tools*
The moose likes IDEs, Version Control and other tools and the fly likes Developing servlets using Eclipse 3.3.2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Developing servlets using Eclipse 3.3.2" Watch "Developing servlets using Eclipse 3.3.2" New topic
Author

Developing servlets using Eclipse 3.3.2

Mainak Moitra Moitra
Greenhorn

Joined: Jan 24, 2009
Posts: 2
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.
Bauke Scholtz
Ranch Hand

Joined: Oct 08, 2006
Posts: 2458
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.
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 29220
    
135

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]


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Mainak Moitra Moitra
Greenhorn

Joined: Jan 24, 2009
Posts: 2
Thanks a lot for the help. But i solved the problem physically adding the library file into dynamic web project
Bauke Scholtz
Ranch Hand

Joined: Oct 08, 2006
Posts: 2458
Associate it with your dynamic web project. This way Eclipse will take the API's automagically in the build path.
Bauke Scholtz
Ranch Hand

Joined: Oct 08, 2006
Posts: 2458
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Developing servlets using Eclipse 3.3.2
 
Similar Threads
To compile servelts using ANT
without using any editor how to compile a servlet?
not able to compile servlets in Eclipse :(
How to use Servlets using Netbeans 6.7.1 and JBoss 5.1.0 GA
javax.servlet not found