Saturday, February 4, 2012

Installing JRuby on Windows (64bit Vista)

I have installed JRuby on my Windows (64bit Vista).

1. Check if I have Java (JRE) installed.
C:\>java -version
java version "1.6.0_24"
Java(TM) SE Runtime Environment (build 1.6.0_24-b07)
Java HotSpot(TM) 64-Bit Server VM (build 19.1-b02, mixed mode)

2. Download JRuby.
Since I already have JRE installed, I downloaded:
"JRuby 1.6.6 Windows Executable (x64) (md5, sha1)"
from the official site: http://jruby.org/download

3. Install JRuby.
Just double click the installer to install.

4. Check the installation.
I closed and reopened the terminal and checked the version installed.
C:\>jruby -v
jruby 1.6.6 (ruby-1.8.7-p357) (2012-01-30 5673572) (Java HotSpot(TM) Client VM 1.6.0_16) [Windows Vista-x86-java]
Check also jirb.
C:\>jirb
irb(main):001:0> 1+2
=> 3
irb(main):002:0>

5. Resouce(s)

JRuby Home: http://jruby.org/