Hi Charlie,

I installed my gem from jruby installation location using bin/gem build
<gem location>/oj.gemspec, bin/gem install oj, etc,
In bin/gem list, Ican see 'oj (1.0 java)'.
But when I ran attached .rb file using bin/jruby x.rb, I get following
error.

NameError: undefined local variable or method `oj' for main:Object
  <top> at ../rbs/tcheck.rb:4

Thanks.

On Tue, May 12, 2015 at 12:09 AM, Charles Oliver Nutter <head...@headius.com
> wrote:

> Usually it is just simpler to use the -I flag to add the gem clone's
> lib/ext/whatever dirs. If you can build the gem you can install normally.
> Between those two options there are ways to get a virtual gem directly on
> the clone, but I usually stick to the simpler options above.
>
> - Charlie (mobile)
> On May 11, 2015 1:35 PM, "Chamila Wijayarathna" <cdwijayarat...@gmail.com>
> wrote:
>
>> Hello all,
>>
>> I have build jruby from cloned jruby source.
>> I am working on a java gem which is available in another directory.
>> How can I install my gem to work with bin/jruby of my build jruby?
>>
>> Thank You!
>>
>> --
>> *Chamila Dilshan Wijayarathna,*
>> Software Engineer
>> Mobile:(+94)788193620
>> WSO2 Inc., http://wso2.com/
>>
>>


-- 
*Chamila Dilshan Wijayarathna,*
Software Engineer
Mobile:(+94)788193620
WSO2 Inc., http://wso2.com/

Reply via email to