Monday, October 1, 2007

Scrubyt for JRuby

Installing JRuby

  1. Install jdk from http://java.sun.com.
  2. Download JRbuy 1.0.1 archive from http://dist.codehaus.org/jruby/
  3. Uncompress the archive
  4. Now you have folder jruby-1.0.1 with sub-folders: bin, docs, lib and samples.
  5. You can add a JRUBY_HOME environment variable pointing to this directory and then add the %JRUBY_HOME%\bin ($JRUBY_HOME/bin on UNIX) to your system PATH.
  6. The JRuby distribution's bin directory contains the jruby.bat file that is used to run the JRuby interpreter.
  7. Run jruby --version from the command line to test that JRuby is working.

Packaging JScrubyt

  1. Download archive with scrubyt-jruby from here
  2. Uncompress the archive
  3. Go to uncompressed folder
  4. Run jruby --command rake package
  5. You should have a gem package scrubyt-0.3.4-jruby.gem in folder pkg

Prepare for installing

  1. Install hpricot: gem install hpricot
  2. Install mechanize: gem install mechanize
  3. Install ruby2ruby: gem install ruby2ruby
  4. Install jrexml: gem install jrexml

Installing JScrubyt

  1. Install jscrubyt: gem install scrubyt-0.3.4-jruby.gem.

Note: Scrubyt for jruby platform can use ruby2ruby 1.1.7 and not use ParseTreeReloaded