JRuby (please use github issues at http://bugs.jruby.org)
  1. JRuby (please use github issues at http://bugs.jruby.org)
  2. JRUBY-191

Implement win32ole library using one of the available Java-COM bridges

    Details

    • Type: New Feature New Feature
    • Status: Closed Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: JRuby 0.9.0
    • Fix Version/s: win32ole 0.8
    • Component/s: Extensions, HelpWanted
    • Labels:
      None
    • Number of attachments :
      2

      Description

      We would like to be able to support the win32ole library in Ruby, so that applications that depend on it could run without modification in JRuby. The easiest way to do this would be to wire in one of the available COM/OLE libraries that exists for the JVM.

      I would recommend the Jacob library; it's the library Groovy uses in their own OLE support.

        Activity

        Hide
        Roger Pack added a comment -

        it's working well for me so far

        Show
        Roger Pack added a comment - it's working well for me so far
        Hide
        Charles Oliver Nutter added a comment -

        Thanks for the update Roger! Let us know if you run into any issues, and just file bugs for win32ole in JRuby's tracker (there are versions listed for it now).

        Show
        Charles Oliver Nutter added a comment - Thanks for the update Roger! Let us know if you run into any issues, and just file bugs for win32ole in JRuby's tracker (there are versions listed for it now).
        Hide
        Roger Pack added a comment -

        I hope it gets incorporated soon, as currently I have to work around this message:

        C:\dev\ruby\sensible-cinema>java -client -Xmx500m -Xss1024k -Djruby.memory.max=500m -Djruby.stack.max=1024k -cp "./vendor/cache/jruby-complete-1.5.5.jar" org.jruby.Main bin\sensible-cinema
        Loading Sensible Cinema...
        !!!! Missing jruby-win32ole gem: jruby -S gem install jruby-win32ole
        file:/C:/dev/ruby/sensible-cinema/vendor/cache/jruby-complete-1.5.5.jar!/META-INF/jruby.home/lib/ruby/site_ruby/1.8/rubygems.rb:777:in `report_activate_error': Could not find RubyGem jruby-win32ole (>= 0) (Gem::LoadError)

        from file:/C:/dev/ruby/sensible-cinema/vendor/cache/jruby-complete-1.5.5.jar!/META-INF/jruby.home/lib/ruby/site_ruby/1.8/rubygems.rb:211:in `activate'
        from file:/C:/dev/ruby/sensible-cinema/vendor/cache/jruby-complete-1.5.5.jar!/META-INF/jruby.home/lib/ruby/site_ruby/1.8/rubygems.rb:1056:in `gem'
        from file:/C:/dev/ruby/sensible-cinema/vendor/cache/jruby-complete-1.5.5.jar!/META-INF/jruby.home/lib/ruby/site_ruby/shared/jruby/win32ole/stub.rb:3
        from file:/C:/dev/ruby/sensible-cinema/vendor/cache/jruby-complete-1.5.5.jar!/META-INF/jruby.home/lib/ruby/site_ruby/shared/jruby/win32ole/stub.rb:31:in `require'
        from file:/C:/dev/ruby/sensible-cinema/vendor/cache/jruby-complete-1.5.5.jar!/META-INF/jruby.home/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
        from C:/dev/ruby/sensible-cinema/vendor/cache/rdp-ruby-wmi-0.3.1/lib/ruby-wmi/core_ext/win32ole_ext.rb:1
        from C:/dev/ruby/sensible-cinema/vendor/cache/rdp-ruby-wmi-0.3.1/lib/ruby-wmi/core_ext/win32ole_ext.rb:31:in `require'
        from file:/C:/dev/ruby/sensible-cinema/vendor/cache/jruby-complete-1.5.5.jar!/META-INF/jruby.home/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
        from C:/dev/ruby/sensible-cinema/vendor/cache/rdp-ruby-wmi-0.3.1/lib/ruby-wmi/core_ext.rb:1
        from C:/dev/ruby/sensible-cinema/vendor/cache/rdp-ruby-wmi-0.3.1/lib/ruby-wmi/core_ext.rb:1:in `each'
        from C:/dev/ruby/sensible-cinema/vendor/cache/rdp-ruby-wmi-0.3.1/lib/ruby-wmi/core_ext.rb:1
        from C:/dev/ruby/sensible-cinema/vendor/cache/rdp-ruby-wmi-0.3.1/lib/ruby-wmi/core_ext.rb:31:in `require'
        from file:/C:/dev/ruby/sensible-cinema/vendor/cache/jruby-complete-1.5.5.jar!/META-INF/jruby.home/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
        from C:/dev/ruby/sensible-cinema/vendor/cache/rdp-ruby-wmi-0.3.1/lib/ruby-wmi.rb:4
        from C:/dev/ruby/sensible-cinema/vendor/cache/rdp-ruby-wmi-0.3.1/lib/ruby-wmi.rb:31:in `require'
        from file:/C:/dev/ruby/sensible-cinema/vendor/cache/jruby-complete-1.5.5.jar!/META-INF/jruby.home/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
        from bin\sensible-cinema:16

        (even though I have the jruby-win32ole gem's lib dir in my $ by creating a fake
        'win32ole.rb' file that does
        require 'jruby-win32ole'
        Cheers!

        Show
        Roger Pack added a comment - I hope it gets incorporated soon, as currently I have to work around this message: C:\dev\ruby\sensible-cinema>java -client -Xmx500m -Xss1024k -Djruby.memory.max=500m -Djruby.stack.max=1024k -cp "./vendor/cache/jruby-complete-1.5.5.jar" org.jruby.Main bin\sensible-cinema Loading Sensible Cinema... !!!! Missing jruby-win32ole gem: jruby -S gem install jruby-win32ole file:/C:/dev/ruby/sensible-cinema/vendor/cache/jruby-complete-1.5.5.jar!/META-INF/jruby.home/lib/ruby/site_ruby/1.8/rubygems.rb:777:in `report_activate_error': Could not find RubyGem jruby-win32ole (>= 0) (Gem::LoadError) from file:/C:/dev/ruby/sensible-cinema/vendor/cache/jruby-complete-1.5.5.jar!/META-INF/jruby.home/lib/ruby/site_ruby/1.8/rubygems.rb:211:in `activate' from file:/C:/dev/ruby/sensible-cinema/vendor/cache/jruby-complete-1.5.5.jar!/META-INF/jruby.home/lib/ruby/site_ruby/1.8/rubygems.rb:1056:in `gem' from file:/C:/dev/ruby/sensible-cinema/vendor/cache/jruby-complete-1.5.5.jar!/META-INF/jruby.home/lib/ruby/site_ruby/shared/jruby/win32ole/stub.rb:3 from file:/C:/dev/ruby/sensible-cinema/vendor/cache/jruby-complete-1.5.5.jar!/META-INF/jruby.home/lib/ruby/site_ruby/shared/jruby/win32ole/stub.rb:31:in `require' from file:/C:/dev/ruby/sensible-cinema/vendor/cache/jruby-complete-1.5.5.jar!/META-INF/jruby.home/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' from C:/dev/ruby/sensible-cinema/vendor/cache/rdp-ruby-wmi-0.3.1/lib/ruby-wmi/core_ext/win32ole_ext.rb:1 from C:/dev/ruby/sensible-cinema/vendor/cache/rdp-ruby-wmi-0.3.1/lib/ruby-wmi/core_ext/win32ole_ext.rb:31:in `require' from file:/C:/dev/ruby/sensible-cinema/vendor/cache/jruby-complete-1.5.5.jar!/META-INF/jruby.home/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' from C:/dev/ruby/sensible-cinema/vendor/cache/rdp-ruby-wmi-0.3.1/lib/ruby-wmi/core_ext.rb:1 from C:/dev/ruby/sensible-cinema/vendor/cache/rdp-ruby-wmi-0.3.1/lib/ruby-wmi/core_ext.rb:1:in `each' from C:/dev/ruby/sensible-cinema/vendor/cache/rdp-ruby-wmi-0.3.1/lib/ruby-wmi/core_ext.rb:1 from C:/dev/ruby/sensible-cinema/vendor/cache/rdp-ruby-wmi-0.3.1/lib/ruby-wmi/core_ext.rb:31:in `require' from file:/C:/dev/ruby/sensible-cinema/vendor/cache/jruby-complete-1.5.5.jar!/META-INF/jruby.home/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' from C:/dev/ruby/sensible-cinema/vendor/cache/rdp-ruby-wmi-0.3.1/lib/ruby-wmi.rb:4 from C:/dev/ruby/sensible-cinema/vendor/cache/rdp-ruby-wmi-0.3.1/lib/ruby-wmi.rb:31:in `require' from file:/C:/dev/ruby/sensible-cinema/vendor/cache/jruby-complete-1.5.5.jar!/META-INF/jruby.home/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' from bin\sensible-cinema:16 (even though I have the jruby-win32ole gem's lib dir in my $ by creating a fake 'win32ole.rb' file that does require 'jruby-win32ole' Cheers!
        Hide
        Thomas E Enebo added a comment -

        Roger why aren't you just installing the gem? It should work fine in 1.5.5 once installed.

        Show
        Thomas E Enebo added a comment - Roger why aren't you just installing the gem? It should work fine in 1.5.5 once installed.
        Hide
        Roger Pack added a comment -

        This is me distributing an app using the jruby-complete-1.5.5.jar...I'm not sure why it required what it does though.

        Show
        Roger Pack added a comment - This is me distributing an app using the jruby-complete-1.5.5.jar...I'm not sure why it required what it does though.

          People

          • Assignee:
            Thomas E Enebo
            Reporter:
            Charles Oliver Nutter
          • Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: