require 'path/to/jruby_ext.jar' returns true, but fails to load extension
-------------------------------------------------------------------------

                 Key: JRUBY-5151
                 URL: http://jira.codehaus.org/browse/JRUBY-5151
             Project: JRuby
          Issue Type: Bug
            Reporter: Aman Gupta
            Assignee: Thomas E Enebo


With mongrel for instance:
{noformat}
$ ruby -v
jruby 1.5.3 (ruby 1.8.7 patchlevel 249) (2010-09-28 7ca06d7) (Java HotSpot(TM) 
64-Bit Server VM 1.6.0_20) [x86_64-java]

$ ruby -e' require "lib/http11.jar"; p Mongrel '
-e:1: uninitialized constant Mongrel (NameError)

$ ruby -I lib -e' require "http11.jar"; p Mongrel '
Mongrel
{noformat}

To setup mongrel:
{noformat}
$ rvm use jruby
Using /Users/test/.rvm/gems/jruby-1.5.3

$ gem install hoe rake-compiler
Successfully installed json_pure-1.4.6
Successfully installed rubyforge-2.0.4
Successfully installed hoe-2.6.2
Successfully installed rake-compiler-0.7.1
4 gems installed

$ gem install rspec -v 1.3.0
**************************************************

  Thank you for installing rspec-1.3.0

  Please be sure to read History.rdoc and Upgrade.rdoc
  for useful information about this release.

**************************************************
Successfully installed rspec-1.3.0
1 gem installed

$ git clone git://github.com/fauna/mongrel
Cloning into mongrel...
remote: Counting objects: 7022, done.
remote: Compressing objects: 100% (1948/1948), done.
remote: Total 7022 (delta 4679), reused 6862 (delta 4593)
Receiving objects: 100% (7022/7022), 4.50 MiB | 164 KiB/s, done.
Resolving deltas: 100% (4679/4679), done.

$ cd mongrel

$ rake compile:java
(in /private/tmp/mongrel)
mkdir -p tmp/java/http11
jar cf tmp/java/http11/http11.jar
cp tmp/java/http11/http11.jar lib/http11.jar
mkdir -p tmp/java/http11/1.8.7
cd tmp/java/http11/1.8.7
...
(ignore rake error)
{noformat}

-- 
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