Scriptlandia-R – Running scripts for Java VM

Installing Scriptlandia-R

RubyGems is the preferred easy install method for Scriptlandia-R. However, you can install Scriptlandia-R manually as described below.

Installing the Gem

$ sudo gem sources -a http://gems.github.com

Scriptlandia-R is dependent on 2 plugins:

$ sudo gem install rjb
$ sudo gem install buildr

or

$ sudo env JAVA_HOME=$JAVA_HOME gem install rjb 
$ sudo env JAVA_HOME=$JAVA_HOME gem install buildr

On Windows only this version of rjb is supported:

$ gem install rjb -v 1.1.6

To install scriptlandia:

$ sudo gem install shvets-scriptlandia

After the installation you have to configure the gem:

$ sudo sl --configure

You have to enter the location of Java Home and Jar Repository Location, e.g.:

Now you can run scripts:

$ sl Hello.bsh
$ sl Test.scala

To install dependencies (jar files) for the language, run this command:

$ sl --install bsh
$ sl --install scala

If you have GUI in your script, you can use –wait flag to wait for GUI thread:

$ sl Hello.bsh --wait