If you have the latest version of NetBeans IDE 6.0, you can create your own JRuby Project, and execute the JRuby samples (they have “rb” extensions) from within the NetBeans IDE.
Java CAPS 6 delivered with NetBeans IDE 6.1 ML.
Create a new JRuby project.
Copy the JRuby scripting files into the project.
Right-click and open the Project Properties tab and provide the appropriate jar files for the project to use.
Start the Sun Java System Application Server.
Open a script file in NetBeans, right-click on the source, and then click Run File to run the script.