Erubis-J Users' Guide

1   Installation

Erubis-J requires Rhino to execute JavaScript code and Kwalify-java to parse YAML file. You should install them to use Erubis-J.

  1. Download erubis-j_x.x.x.zip from http://www.kuwata-lab.com/erubis, unzip it, and get 'erubis.jar'.
  2. Download Rhino from http://www.mozilla.org/rhino/ and get 'js.jar'.
  3. Download Kwalify-java from http://www.kuwata-lab.com/kwalify and get 'kwalify.jar'.
  4. Set the classpath environment variable to include the following jar files.
    • erubis.jar
    • js.jar
    • kwalify.jar
  5. Try 'java erubis.Main -h' to invoke Erubis-J. If you got help message, installation was successed.
  6. (Optional) You can create shell script to invoke Erubis-J in short. For example:
    #!/bin/sh
    ##
    ## filename: erubis-j
    ##
    js_jar=$HOME/lib/java/rhino/js.jar
    kwalify_jar=$HOME/lib/java/kwalify-java/kwalify.jar
    erubis_jar=$HOME/lib/java/erubis-j/erubis.jar
    classpath=$js_jar:$kwalify_jar:$erubis_jar
    exec java -classpath $classpath erubis.Main "$@"
    

Erubis-J requires Java 1.4 or higher.