Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I compile servlets in eclipse? 1

Status
Not open for further replies.

FreshmenProgrammer

Programmer
Jan 16, 2006
42
0
0
CA
I am running eclipse sdk version 3.1.1 and the newest tomcat. I can run servlets no problem but I do not know how to compile one if i make changes or start a new one in eclipse. i do have Java JDK and the JSEE installed too.
 
I think Eclipse, by default, auto-compiles classes as you go. Deployment of new stuff to Tomcat is probably best done by wrapping up all of your classes, libs and other resources (such as the web.xml file) into a .war file. The Tomcat manager has an upload button which allows you to browse for the .war and deploys it.

Unless you have an eclipse plugin to make archives (such as the JBoss plugin - I think) you can use Apache Ant to do make the .war file.

Tim
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top