Forum: JRuby NameError: uninitialized constant IRB::Irb

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
98f034249f43fc242a9e9baddfd4c989?d=identicon&s=25 Aaron Sun (Guest)
on 2013-07-21 20:10
(Received via mailing list)

I am totally new to both Ruby and JRuby. In fact I met this problem when
was trying to debug HBase, which has a shell - hirb.rb - written in

The file hirb.rb contains a class HIRB which subclasses IRB as follows

module IRB

class HIRB < Irb

However, the execution of hirb.rb using JRuby (jruby-complete-1.6.5.jar)
 returns the error

NameError: uninitialized constant IRB::Irb
  const_missing at org/jruby/

I am using Windows 7 as the dev environment, and no Ruby environment was
installed. The execution is through running org.jruby.Main with the path
hirb.rb as the input.

F1d37642fdaa1662ff46e4c65731e9ab?d=identicon&s=25 Charles Nutter (headius)
on 2013-07-24 00:43
(Received via mailing list)
It sounds like it's not loading the "irb" library, or that library
isn't in jruby-complete properly.

The following works ok for me on JRuby master...perhaps you can try
adding "require 'irb'" to the code?

$ jruby -e 'require "irb"; p IRB; p IRB::Irb'

- Charlie
This topic is locked and can not be replied to.