• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to include servlet api in eclipse

 
ms raaghu
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 18226
53
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
ms raaghu
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 55
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

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

Best regards, Lars
 
ms raaghu
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 55
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 55
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Give it a try with the tutorial I proposed. I would assume that your other problem is then gone too.
 
ms raaghu
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 55
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Eclipse Downloads Select Eclipse IDE for Java EE Developers
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic