Steps to installation and configuration of Eclipse to efficiently excute WATIR.
1. Install Ruby
2. Install Watir
3. Download Eclipse c:\apps
4. Note: You will need appropriate JVM to run Eclipse so download c:\apps\j2sdk1.4.2_06, then create an Eclipse shortcut on your desktop, right click and edit properties of the short cut, setting the target to C:\Apps\eclipse\eclipse.exe -vm C:\Apps\j2sdk1.4.2_08\jre\bin\javaw.exe -vmargs -Xmx512m -Xms512m
5. add Ruby plugin to Eclipse > start Eclipse > click Help > Software Updates > Find and Install > Search for new features radio button > next > new remote Site > Name = Ruby and URL = http://update.aptana.com/update/rdt/3.2/
6. Optional: add Subclipse plugin > click Help > Software Updates > Find and Install > Search for new features radio button > next > new remote Site > Name = Subclipse and URL = http://subclipse.tigris.org/update_1.0.x
7. Top right of Eclipse click on open perspective link and select the Ruby perspective
configure the Watir project: file > new > project >Ruby > ruby Project > name the project WATIR > uncheck default location > browse to c:\apps\ruby\lib\ruby\gems\1.8\gems\watir-1.4.1
8. Set Ruby interpreter: window > preferences > Ruby > Installed interpreters > browse and set to c:\apps\ruby\bin\ruby.exe
Comments (1)
Feb 18, 2009
Robert Papesch says:
Alternative for step (5) is the new Eclipse DLTK (dynamic languages toolkit). As...Alternative for step (5) is the new Eclipse DLTK (dynamic languages toolkit). As above, add new remote Site > Name = "DLTK" and URL = http://download.eclipse.org/technology/dltk/updates/ . After adding the site, select the Ruby plugin to install. Don't worry about Python or Tcl .. (unless you want to).
[Optional: Manual download is available here: http://download.eclipse.org/technology/dltk/downloads/drops/R1.0/S-1.0M5-200902060933/ -- get the Core framework Runtime + Ruby IDE Runtime].
Alternative for step (8) is rubyw.exe -- same directory as ruby.exe but this version doesn't show a DOS window when you execute your script. The Eclipse console is all that's needed anyway.