Ruby 1.9 compat mode needs to be set jruby.home when jruby.jar is used.
-----------------------------------------------------------------------

                 Key: JRUBY-4168
                 URL: http://jira.codehaus.org/browse/JRUBY-4168
             Project: JRuby
          Issue Type: Bug
          Components: Ruby 1.9
    Affects Versions: JRuby 1.5
            Reporter: Yoko Harada
            Assignee: Thomas E Enebo
         Attachments: Ruby19CompatMode.java

Even though ruby scripts don't use shared libraries  located in 
lib/ruby/site_ruby/shared/, Ruby 1.9 compat mode needs jruby.home to be set 
correctly to load shared libraries. Following error happened when I ran the 
Java program attached.
{noformat} 
Exception in thread "main" :1: no such file to load -- builtin/prelude 
(LoadError)
        ...internal jruby stack elided...
        from (unknown).(unknown)(:1)
Java Result: 1
{noformat} 
In case of other scripts, for example, test/test_assignment_1_9.rb, "generator" 
was failed to load. Load path setting didn't work in these cases. When I set 
jruby.home, the problem was gone.

This happens only when jruby.jar is used. When jruby-complete.jar doesn't have 
this problem since jruby.home is set within the jar archive.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.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