I just downloaded a 1.7.11 snapshot of jruby and went to install rails.
I received the error listed below:
C:\opt\ruby\jruby-1.7.11-SNAPSHOT>jruby -S gem install rails
ERROR: Loading command: install (LoadError)
load error: jopenssl/load -- java.lang.NoClassDefFoundError: org/bouncycastle/asn1/DERBoolean
ERROR: While executing gem ... (NoMethodError)
undefined method `invoke_with_build_args' for nil:NilClass
C:\opt\ruby\jruby-1.7.11-SNAPSHOT>
C:\opt\ruby\jruby-1.7.11-SNAPSHOT>jruby -v
jruby 1.7.11-SNAPSHOT (1.9.3p392) 2014-02-06 c5d0e22 on Java HotSpot(TM) 64-Bit Server VM 1.7.0_45-b18 [Windows 7-amd64]
I downloaded the dist.zip file and unzipped it. Changed my JRUBY_HOME / PATH and tried to install rails. It actually does this when you try to install any gem though.