Matthew Jenkins created JRUBY-6322:
--------------------------------------

             Summary: Missing stub for win32ole?
                 Key: JRUBY-6322
                 URL: https://jira.codehaus.org/browse/JRUBY-6322
             Project: JRuby
          Issue Type: Bug
          Components: win32ole
    Affects Versions: JRuby 1.6.5
         Environment: Windows 7 x64 Pro, win32ole 0.8.5
            Reporter: Matthew Jenkins
            Assignee: Thomas E Enebo
            Priority: Minor


When jruby files are compiled to java .class files Java can not find a missing 
stub.

This can be tested by creating 2 new ruby class files. If you create a ruby 
class file which is just puts "Hello" running the jrubyc on it then 
java -cp .;C:\jruby-1.6.5.1\lib\jruby.jar test
will output Hello on the command line. If you add
require 'win32ole'
and compile it again when you try to run it you will get 

Exception in thread "main" org.jruby.exceptions.RaiseException: (LoadError) no 
such file to load --
jruby/win32ole/stub
        at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1038)
        at new.(root)(new.rb:1)


even if you add the win32ole.jar to the classpath.
 
java -cp 
.;C:\jruby-1.6.5.1\lib\jruby.jar;C:\jruby-1.6.5.1\lib\ruby\gems\1.8\gems\jruby-win32ole-0.8.5\lib\win32ole\win32ole.jar
 test
Exception in thread "main" org.jruby.exceptions.RaiseException: (LoadError) no 
such file to load --
jruby/win32ole/stub
        at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1038)
        at test.(root)(test.rb:1)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to