You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by Apache Wiki <wi...@apache.org> on 2006/01/27 00:16:53 UTC

[Jakarta-tapestry Wiki] Update of "HowToSetupEclipseWtp" by MatGessel

Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Jakarta-tapestry Wiki" for change notification.

The following page has been changed by MatGessel:
http://wiki.apache.org/jakarta-tapestry/HowToSetupEclipseWtp

New page:
== Benefits to using Web Tools Platform ==

 * Automatically reloads affected context when Java source files change
 * Easy to use Eclipse debugger
 * Start, stop & restart web server within Eclipse
 * Auto-completion and validation in XML editors of elements and attribute names (i.e. HTML templates, application, page & component specifications)

== Tested Configuration ==

This How-To was written and tested with the following configuration: 

 * Tapestry 4.0
 * JDK 1.5.0
 * Tomcat 5.0
 * Windows XP
 * Eclipse 3.1.1
 * Web Tools Platform 1.0

== Steps ==
=== Installation ===
 * Install JDK 1.5.0 http://java.sun.com/j2se/1.5.0/download.jsp
 * Install Tomcat 5 http://tomcat.apache.org/download-55.cgi
 * Install and build Tapestry 4.0. See BuildingTapestry
 * Install Eclipse and Web Tools Platform. The easiest way is to grab the All-in-one download. This contains Eclipse, WTP, EMF, GEF & JEM, all of which you need to run WTP. http://download.eclipse.org/webtools/downloads/drops/R-1.0-200512210855/

=== Launch Eclipse ===
Close the Welcome tab (you can get to it later by Help > Welcome

=== Define JDK ===
Eclipse will launch with your machine's default JRE. Tomcat typically needs to launch from the JDK (not sure if this is necessary for Tapestry). 

'''Window''' > '''Preferences...'''

Click '''Java''' > '''Installed JREs''' 

Add JDK 1.5 if necessary ('''not''' JRE 1.5)

=== Create a Server Runtime ===
This tells Eclipse where Tomcat is installed. 

'''Window''' > '''Preferences...'''

Open the '''Server ''' preference and select '''Installed Runtime'''

Click '''Add...''' 

Select '''Apache''' > '''Apache Tomcat v5.0''' and click '''Next'''

Browse to and select your Tomcat root directory e.g. ''C:\Program Files\Apache Software Foundation\Tomcat 5.0''

Select JDK 1.5

Click '''Finish'''

Click '''OK''' to close the Preferences dialog

=== Create a Server Configuration ====
A better name would be "Launch Configuration". It is essentially the same as '''Run''' > '''Run...'''

'''Window''' > '''Show View''' > '''Other'''

Open the '''Server''' > '''Servers''' view

Name the server

Select '''Apache > Tomcat v5.0 Server'''

Select the runtime you created in the last step

And click '''Finish'''

A side-effect of creating a Server Configuration is a new '''Servers''' project will be created. 

MORE TO COME....

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-dev-help@jakarta.apache.org