Need to setup my Ruby environment on a Windows systems yesterday. Here’s how I did it:
- Download Ruby installer or source from here. Install. I’d recommend checking the ‘add to PATH’ box in one of the installation screens.
- Add the Dynamic Languages Toolkit (DLTK). To do this within Eclipse, go to Help > install new software… Add the URL: http://download.eclipse.org/technology/dltk/updates/
- After the DLTK installs, some configuration is needed like setting where the Ruby executable is located. Within Eclipse go to Window > open perspectives > choose Ruby perspective. Now that you’re in the ruby perspective, Window > preferences > ruby > interpreters > click SEARCH and you should be able to both see and put a check-mark in “ruby.exe”. Check OK
- Ruby should now be configured to use with Eclipse now. To test it out create a New > Ruby Project. Then create a New>Empty Ruby Script
- Write in your first Ruby script: puts ‘Hello Ruby World’
- Run the newly created Ruby script. Run > Run As > Ruby Script
This entry based off this Eclipse Community Forum page.