Dashboard > Watir > ... > Watir Development > Setting up Eclipse for Ruby
Watir Log In View a printable version of the current page.
Setting up Eclipse for Ruby
Added by Carl Shaulis, last edited by Carl Shaulis on May 06, 2008  (view change)
Labels: 
(None)

Steps to installation and configuration of Eclipse to efficiently excute WATIR.

1. Download Ruby c:\apps
2. Download WATIR c:\apps\ruby\lib\ruby\gems\1.8\gems\watir-1.4.1
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://rubyeclipse.sf.net/updatesite
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

Site running on a free Atlassian Confluence Community License granted to OpenQA. Evaluate Confluence today.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.5.6 Build:#812 Aug 06, 2007) - Bug/feature request - Contact Administrators