To install your own JRuby instance as standalone, use the following procedure.
Go to JRuby download site JRuby Download Site.
Download jruby-bin-1.3.1.zip or the latest version.
Unpack the zip file:
unzip jruby-bin-1.3.1.zip
Set your JRUBY_HOME environment variable to the location of your JRuby installation:
export JRUBY_HOME=/jruby-install-location
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
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: