File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes IDEs, Version Control and other tools and the fly likes How to include servlet api in eclipse Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "How to include servlet api in eclipse" Watch "How to include servlet api in eclipse" New topic
Author

How to include servlet api in eclipse

ms raaghu
Ranch Hand

Joined: Jul 10, 2009
Posts: 66
Hi ,
I am using eclipse(ganymede) , in this how can i include the servlet api /JSP api so that i can write these things
in eclipse and how can i start tomcat from eclipse and test my web app..

Please give me a solution for this...
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15641
    
  15

Each Eclipse project has a classpath used for editing. If you create run/debug profiles for that project, they will also have classpaths, which are based on the editing classpath.

In order to reference the servlet API, you have to place the servlet api jar in the classpath. Typically, I just make an external library reference to TOMCAT_HOME/lib/servlet-api.jar using the project Properties/Java Build Path/Libraries dialog.

To debug Tomcat apps in Eclipse, you need to have a plug-in that either includes Tomcat or can use an already-installed Tomcat to set up and run Tomcat debugging. The sysdeo plug-in is popular. It requires that you have already downloaded and installed Tomcat.

Customer surveys are for companies who didn't pay proper attention to begin with.
ms raaghu
Ranch Hand

Joined: Jul 10, 2009
Posts: 66
Thanks Tim,

I have already installed tomcat in my system and can you please send the flow or screenshots how to add a plugin and how to take system environment variables so that i can refer the same from Eclipse???
Lars Vogel
Ranch Hand

Joined: Oct 10, 2007
Posts: 55
Hello,

how to setup Tomcat with Eclipse WTP is described here: Servlet and JSP development with Eclipse WTP.

Best regards, Lars


Tutorials about Java, Eclipse and Webprogramming http://www.vogella.de
ms raaghu
Ranch Hand

Joined: Jul 10, 2009
Posts: 66
Thank you Lars ...
before i got the reply from you i was just going through your site and got lot of info
great work

if at all i have further doubts or clarification how can i contact you

please let me know
Lars Vogel
Ranch Hand

Joined: Oct 10, 2007
Posts: 55
I believe the best way of issuing questions is a forum like this, as then lots of people will be able to help.
ms raaghu
Ranch Hand

Joined: Jul 10, 2009
Posts: 66
Ok Lars ...that is better and one more last question i had post a question previous but i dint solution properly please review
the same please provide a solution...for the post
Bad version of the Servlet class
Lars Vogel
Ranch Hand

Joined: Oct 10, 2007
Posts: 55
Give it a try with the tutorial I proposed. I would assume that your other problem is then gone too.
ms raaghu
Ranch Hand

Joined: Jul 10, 2009
Posts: 66
i was trying yesterday the tutorial steps to install th WTP ...as am using the Ganemade version of eclipse , the steps given varies and i tried updating the software through help->update software but it took more than 8 hrs and still the updation dint complete ... wat must be the problem??? or should i download eclipse 3.5 version ???

and is eclipse classic and gelelio one and the same ?...if not please provide the link where i can download galelio
please help me out, am not able to continue wit my work .....
Lars Vogel
Ranch Hand

Joined: Oct 10, 2007
Posts: 55
Eclipse Downloads Select Eclipse IDE for Java EE Developers
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to include servlet api in eclipse
 
Similar Threads
How to display Java API source code in Eclipse
creating a web application in eclipse
How can i include Hibernate jar file in to Eclipse IDE
JAVA Source Attachment in Eclipse
Applet to upload files with SCP to