Bookmark and Share Share

Installing and Configuring JRuby for Mashups

You can use JRuby as a scripting language in mashup scripts through the <script> statement. To use JRuby, you must install it in your environment.

Note: JRuby scripting is not supported in deployments in WebSphere 6.1.

Steps:

  1. Download JRuby 1.0 and install it in an appropriate folder in your environment. Follow installation instructions with the JRuby libraries.

  2. Add -DJRUBY_HOME=path-to-jruby-installation to the Java options for your environment.

  3. If you have deployed the EMML Reference Runtime Engine in WebLogic 8.1 SP6, add JRuby to the classpath:

    1. Edit the startup script for WebLogic. This is the startWebLogic.cmd or startWebLogic.sh file in the weblogic-domain-base folder.

    2. Add these entries to the CLASSPATH environmental variable:

      • JRuby-home/lib/jruby.jar

      • JRuby-home/lib/ruby/1.8

  4. Restart the EMML Engine.