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)

setting up specific version of JRuby and Rails with Netbeans 6.5

To add a custom Ruby platform in Netbeans 6.5 (in my case updating from the included JRuby 1.1.4 to JRuby 1.2) :

Install the desired version of JRuby

  • Download Ruby 1.2.0 from jruby.org
  • Extract the zip file to c:\ruby\jruby-1.2.0
  • Test it out by going to the c:\ruby\jruby\1.2.0\bin directory and running ‘jirb’
    (It seems this will only work on Windows if you’re in the bin directory)
  • You can install gems with ‘jruby gem install foo’

Add the new version of JRuby to Netbeans

  • Click on Tools -> Ruby Platforms
  • Click “Add Platform” and navigate to the ruby.bat file.
  • Navigate to the c:\ruby\jruby-1.2.0\bin\ folder and select ruby.bat
    (only the ruby.bat file will work on windows)


Load and update packages from Netbeans

  • click on Tools -> Ruby Gems
  • To update, select the “Updated” tab
    To Install, select the “New Gems” tab
  • (not the most intuitive, but easy enough to figure out.)


My real gripe is the forced network calls that interrupt the application.  In Netbeans 6.1, your whole IDE was frozen, at least in 6.5 you can hit the “Close” button and cancel the extremely slow package refresh and get back to work.

Because of this, I prefer to load my gems from the command line, especially if you want a different version than the latest.

Load and update packages from the command line

  • cd C:\ruby\jruby-1.2.0\bin
    (don’t forget, you have to be here, or mess with your path)
  • jruby gem update –system
  • jruby gem install rails -v=2.1.2
  • jruby gem install jruby-openssl
    (to get rid of that annoying, but harmless message)

Install previous version of a gem in Netbeans

  • Click on Tools -> Ruby Gems
  • Click on the “Installed Gems” tab
    (note that if you installed gems from the command line, you have to click “Reload Gems” to see them in Netbeans.)
  • Enter a seach term to narrow down the list
  • Click on the “Settings” tab
  • Check “Fetch All Gem Versions”
    (don’t do this before you have a sufficiently narrowed down list or it will take forever.  Unfortunately, if you search for “rails” you see about a hundred packages and all their versions, and this could take hours to load.)


Create a new Rails project using my selected versions

  • Click File->New Project
  • Select Category: Ruby
  • Select Projects type: Ruby on Rails Application


  • Click Next
  • Select JRuby 1.2.0 from the Ruby Platform
  • Netbeans_Rails_project_configComplete the project creation by selecting the Database connection
    (I installed the jdbc-mysql and activerecord-jdbc-mysql gems, and then created the database manually.)


  • and selecting the rails version
    (optionally installing Warbler and JRuby_OpenSSL Support)



If you’re like me, you probably think the last thing the web needs is another social networking site. Either I don’t have that many friends, or my friends don’t use the interweb for socializing.

The other day, I overheard a conversation about a dating site. Now if there’s one thing the web absolutely doesn’t need, it’s another dating site. But as I listened (eavesdropped) I realized that at least some people aren’t really looking for romantic relationships, so much as friends. (Let’s forget about “friends with benefits” for now. )

I noted that what she was looking for in a “match” was someone with shared hobbies and interests. While that may be a successful tactic for finding a mate (I’m doubtful), it’s a pretty good strategy for finding friends.

Being married, I don’t want to join a dating site. I like my wife just fine, thank you. And as long as I stay away from dating sites, she’ll probably like me as well. But you don’t do everything with your spouse. Mind doesn’t care for programming computers or watching the History Military Channel, and I’m not that into sewing.

While those are mostly solo activities, I wouldn’t mind finding someone interested in building or restoring a wooden boat, or playing a pickup game of frisbee golf. You’d think the internet would be good at helping people with things like that. But either I don’t know how, or maybe I just have obscure interests.

But what if there was a website for people to find other people with obscure hobbies that match their own? Surely there’s someone else in the Seattle Area who’d like to build a sailboat, play a tabletop wargame, or frolf with me? Nothing serious., you know. I’m not looking for a commitment, at least not yet.

That’s the idea of likemi/likeminds. A website where you can find your “match”, in a completely non-romantic way, have a “good time”, and maybe even make friends.

The idea is simple. Use the same tools that dating sites use to try to pair people up, but more explicity. You’re not looking for someone who’s into alternate history civil war renactment geo-cache kiteboarding scavenger hunts to fall in love with them, just someone willing to do it with.

The risk is that some people will be interested in falling in love (or having sex). But in order to keep it out of the gutter (or the clouds), we’ll ban those interests. There’s plenty of sites for that stuff already. This one is about actually doing things. If you want to fall in love, do it on your own time.

An exciting idea is that you might also find out about hobbies that you didn’t know about. People that have similar hobbies might have similar tastes. If you’re a kiteboarder, you might be also be a latent civil war buff or vice versa. If not — no big deal, you might be able to find another friend to get you’re Gettysburg fix.

I’m just looking for people with like minds to hang out with. Someone like me.