jruby/warbler — Issue #67: Use Warbler on Windows with Win32ole?
Author: mliebelt
Created: 2011-12-26 18:48:53+00:00
State: open

This issue is a duplicate of the [Stackoverflow question](http://stackoverflow.com/questions/8637850/use-warbler-on-windows-with-win32ole), it is possibly more appropriate to ask here ...

----

I try to create a jar library with the help or Warbler, and it works for a very simple hello-world-script. However, the real case for me is a script that uses win32ole to open and sum up excel files.

This is what is currently installed:

* `ruby 1.9.2p180 (2011-02-18) [i386-mingw32]`
* `warbler (1.3.2)`
* Windows 7, 64bit

My script I want to pack by warbler has the only requirement: `require 'win32ole'`

When I create the jar archive with Warbler, this works fine. I don't know the structure for Warbler, but it packs all files in the directory in the jar file and created the relevant META-INF contents.

When I call the script by using: `java -jar feedback-analyse.jar`, I get this error message:

c:\feedback-analyse>java -jar feedback-analyse.jar
!!!! Missing jruby-win32ole gem: jruby -S gem install jruby-win32ole
LoadError: no such file to load -- jruby-win32ole
require at org/jruby/RubyKernel.java:1038
require at file:/C:/Users/mliebelt/AppData/Local/Temp/jruby4016543157589786303extract/jruby-stdlib-1.6.5.jar!/META-INF/jruby.home/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36
(root) at file:/C:/Users/mliebelt/AppData/Local/Temp/jruby4016543157589786303extract/jruby-stdlib-1.6.5.jar!/META-INF/jruby.home/lib/ruby/site_ruby/shared/jruby/win32ole/stub.rb:3
require at org/jruby/RubyKernel.java:1038
require at file:/C:/Users/mliebelt/AppData/Local/Temp/jruby4016543157589786303extract/jruby-stdlib-1.6.5.jar!/META-INF/jruby.home/lib/ruby/site_ruby/shared/jruby/win32ole/stub.rb:36
(root) at file:/C:/feedback-analyse/feedback-analyse.jar!/feedback-analyse/bin/ana.rb:6
load at org/jruby/RubyKernel.java:1063
(root) at file:/C:/feedback-analyse/feedback-analyse.jar!/feedback-analyse/bin/ana.rb:1
require at org/jruby/RubyKernel.java:1038
require at file:/C:/feedback-analyse/feedback-analyse.jar!/META-INF/main.rb:36
(root) at