Forum: JRuby JRuby 1.7.0.preview1 NameError: uninitialized constant RubyVM

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.
Martin Gross (Guest)
on 2012-06-12 20:05
(Received via mailing list)
Hi all,

when I try to run the following simplistic script I am getting a
"NameError: uninitialized constant RubyVM" .

Seems to be a bug, isn't it?

D:\Workspace\Ruby\rubytester>more profile.rb
require 'profile'

puts "Hello"

D:\Workspace\Ruby\rubytester>jruby profile.rb
NameError: uninitialized constant RubyVM
  const_missing at org/jruby/
         (root) at
        require at org/jruby/
         (root) at
         (root) at profile.rb:1

D:\Workspace\Ruby\rubytester>jruby -v
jruby 1.7.0.preview1 (ruby-1.9.3-p203) (2012-05-19 00c8c98) (Java
HotSpot(TM) Client VM 1.7.0_03) [Windows XP-x86-java]
09a41a085f93af8644a7e2e35ba987af?d=identicon&s=25 Charles N. (headius)
on 2012-06-13 02:30
(Received via mailing list)
Looks like the 1.9 mode profile.rb uses RubyVM, which we don't
File a bug...we will need to fix that.
Martin Gross (Guest)
on 2012-06-14 14:16
(Received via mailing list)
It is filed now under

Thank you,

On Wed, Jun 13, 2012 at 2:29 AM, Charles Oliver Nutter
This topic is locked and can not be replied to.