mitchellh / virtualbox

[ABANDONED] Create and modify virtual machines in VirtualBox using pure ruby.
http://mitchellh.github.com/virtualbox/
MIT License
245 stars 45 forks source link

Cannot load VirtualBox.version in JRuby (1.6.3) #73

Open rtyler opened 12 years ago

rtyler commented 12 years ago

While working on a vagrant plugin for Jenkins, I've hit the stumbling block that I can't bring up VirtualBox under JRuby.

Relevant irb session:

jruby-1.6.3 :002 > require 'rubygems'
 => true 
jruby-1.6.3 :003 > require 'virtualbox'
 => true 
jruby-1.6.3 :004 > VirtualBox.version
 => nil 
jruby-1.6.3 :005 > 
sistar commented 12 years ago

Hi, I had the same problem, that is why I found this reported issue.

I had only jRuby 1.6.4 in my path and uses gem, irb

Tried once more using jgem and jirb and it worked.