Sun GlassFish Enterprise Server v3 Scripting Framework Guide

ProcedureTo Install JRuby as Standalone

To install your own JRuby instance as standalone, use the following procedure.

  1. Go to JRuby download site JRuby Download Site.

  2. Download jruby-bin-1.3.1.zip or the latest version.

  3. Unpack the zip file:

    unzip jruby-bin-1.3.1.zip

  4. Set your JRUBY_HOME environment variable to the location of your JRuby installation:

    export JRUBY_HOME=/jruby-install-location

  5. Add JRUBY_HOME/bin directory to your system path so that you can invoke JRuby from anywhere in your directory tree:

    export PATH=$PATH:$JRUBY_HOME/bin

  6. If you want to use this JRuby installation with your Enterprise Server, use the following steps to inform and configure Enterprise Server instance with the location of the JRuby installation:

    1. Start your GlassFish installation:

      asadmin start-domain

    2. Set JRuby home:

      asadmin configure-jruby-container --jruby.home=/jruby-install-location