JRuby 1.7.0.preview1 NameError: uninitialized constant RubyVM

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/RubyModule.java:2715
(root) at
require at org/jruby/RubyKernel.java:991
(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™ Client VM 1.7.0_03) [Windows XP-x86-java]

Looks like the 1.9 mode profile.rb uses RubyVM, which we don’t
File a bug…we will need to fix that.

It is filed now under http://jira.codehaus.org/browse/JRUBY-6725

Thank you,

On Wed, Jun 13, 2012 at 2:29 AM, Charles Oliver N.