JRuby 1.3.0 not working

I installed JRuby 1.3.0 but when I tried to run “gem” I got the following error message:

C:\ruby\jruby-1.3.0\bin>jruby gem install rails
C:/ruby/jruby-1.3.0/bin/../lib/ruby/site_ruby/1.8/rubygems.rb:881:in `searcher’: Mutex relocking by same thread (ThreadError)
from C:/ruby/jruby-1.3.0/bin/../lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:33:in `require’
from C:/ruby/jruby-1.3.0/bin/../lib/ruby/site_ruby/1.8/rubygems.rb:499:in `ensure_gem_subdirectories’
from C:/ruby/jruby-1.3.0/bin/../lib/ruby/site_ruby/1.8/rubygems/defaults/jruby.rb:12:in `ensure_gem_subdirectories’
from C:/ruby/jruby-1.3.0/bin/../lib/ruby/site_ruby/1.8/rubygems.rb:892:in `set_home’
from C:/ruby/jruby-1.3.0/bin/../lib/ruby/site_ruby/1.8/rubygems.rb:467:in `dir’
from C:/ruby/jruby-1.3.0/bin/../lib/ruby/site_ruby/1.8/rubygems.rb:910:in `set_paths’
from C:/ruby/jruby-1.3.0/bin/../lib/ruby/site_ruby/1.8/rubygems/defaults/jruby.rb:17:in `set_paths’
from C:/ruby/jruby-1.3.0/bin/../lib/ruby/site_ruby/1.8/rubygems.rb:689:in `path’
… 8 levels…
from C:/ruby/jruby-1.3.0/bin/../lib/ruby/site_ruby/1.8/rubygems.rb:1125
from C:/ruby/jruby-1.3.0/bin/../lib/ruby/site_ruby/1.8/rubygems.rb:8:in `require’
from gem:8

C:\ruby\jruby-1.3.0\bin\jirb:16:in `require’: no such file to load — irb (LoadError)
from C:\ruby\jruby-1.3.0\bin\jirb:16

Windows XP X86_64 SP2

C:\ruby\jruby-1.2.0\bin>java -version
java version “1.6.0_14”
Java(TM) SE Runtime Environment (build 1.6.0_14-b08)
Java HotSpot(TM) 64-Bit Server VM (build 14.0-b16, mixed mode)

One thought on “JRuby 1.3.0 not working

  1. hi

    0. try the new 1.3.1 release (bugfix)
    1. add C:\ruby\jruby-1.3.0\bin to your Path environment variable at system settings
    2. install gems by rissuing ‘jruby -S gem install {gemname}’ from anywhere; the -S flag ensures that command will be executed at the jruby exec path

    good luck!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s