I'm trying to execute the following code in ruby:
require 'win32ole'
bloomberg = WIN32OLE.new('Bloomberg.Data.1')
However, I am receiving the following error: !!!! Missing jruby-win32ole gem: jruby -S gem install jruby-win32ole LoadError: no such file to load -- jruby-win32ole
When I run the command through the command prompt window I receive the following error:
irb(main):001:0> require 'win32ole'
=> true
irb(main):002:0> WIN32OLE.new('Bloomberg.Data.1')
WIN32OLERuntimeError: failed to create WIN32OLE object
from`Bloomberg.Data.1'
HRESULT error code:0x80040154
Class not registered
I did install the jruby-win32ole gem but am still receiving the same error. Does anyone have any guidance on this issue?
User contributions licensed under CC BY-SA 3.0