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.