Installing a Java Extension

View: New views
5 Messages — Rating Filter:   Alert me  

Installing a Java Extension

by Jay McGaffigan :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Is there a default place to install java extensiions to?

I'm looking to put  the java extension for rcov into the Rcov gem
install.. It's almost done and I've gotten to a point in the install
where I need to put the jar file somewhere.  The stuff I've seen on
creating java extensions pretty much says it needs to be in the
classpath.
In MRI extensions live in the ruby/site_ruby/1.8/{os_specific_dir}

Is something like that already set in the CP for the jruby?  (ie
ruby/site_ruby/1.8/java)

If not would it be easy to do?

Thanks!
Jay

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

    http://xircles.codehaus.org/manage_email



Re: Installing a Java Extension

by Ryan L. Bell :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I think you can leave that in the gem's lib dir. Jruby should be able to
get it on the classpath when require is called.

/Ryan

Jay McGaffigan wrote:

> Is there a default place to install java extensiions to?
>
> I'm looking to put  the java extension for rcov into the Rcov gem
> install.. It's almost done and I've gotten to a point in the install
> where I need to put the jar file somewhere.  The stuff I've seen on
> creating java extensions pretty much says it needs to be in the
> classpath.
> In MRI extensions live in the ruby/site_ruby/1.8/{os_specific_dir}
>
> Is something like that already set in the CP for the jruby?  (ie
> ruby/site_ruby/1.8/java)
>
> If not would it be easy to do?
>
> Thanks!
> Jay
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>    http://xircles.codehaus.org/manage_email
>
>


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

    http://xircles.codehaus.org/manage_email



Re: Installing a Java Extension

by Vladimir Sizikov-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Jay, Ryan,

Indeed, treat JAR file like any other binary/.so file, and 'require'
when needed. So, it could go to lib dir with no problems.

Take a look at the mongrel gem, for example, it ships with JAR file.

Thanks,
  --Vladimir

On Thu, Jul 24, 2008 at 6:11 PM, Ryan L. Bell <ryan.l.bell@...> wrote:

> I think you can leave that in the gem's lib dir. Jruby should be able to get
> it on the classpath when require is called.
>
> /Ryan
>
> Jay McGaffigan wrote:
>>
>> Is there a default place to install java extensiions to?
>>
>> I'm looking to put  the java extension for rcov into the Rcov gem
>> install.. It's almost done and I've gotten to a point in the install where I
>> need to put the jar file somewhere.  The stuff I've seen on creating java
>> extensions pretty much says it needs to be in the classpath.
>> In MRI extensions live in the ruby/site_ruby/1.8/{os_specific_dir}
>>
>> Is something like that already set in the CP for the jruby?  (ie
>> ruby/site_ruby/1.8/java)
>>
>> If not would it be easy to do?
>>
>> Thanks!
>> Jay
>>
>> ---------------------------------------------------------------------
>> To unsubscribe from this list, please visit:
>>
>>   http://xircles.codehaus.org/manage_email
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>   http://xircles.codehaus.org/manage_email
>
>
>

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

    http://xircles.codehaus.org/manage_email



Re: Installing a Java Extension

by Albert Ramstedt-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hey!

Do tell us when you drop the gem on rubyforge. I was looking to
install rcov4jr the other day but I didnt find it in the repos and I
figured it was not usable yet. Is it? I would really appreciate
something faster than the pure ruby rcov stuff I am using for now.
Anyway, kudos to you for working on this!

Thanks,
Albert

On Thu, Jul 24, 2008 at 7:01 PM, Vladimir Sizikov <vsizikov@...> wrote:

> Hi Jay, Ryan,
>
> Indeed, treat JAR file like any other binary/.so file, and 'require'
> when needed. So, it could go to lib dir with no problems.
>
> Take a look at the mongrel gem, for example, it ships with JAR file.
>
> Thanks,
>  --Vladimir
>
> On Thu, Jul 24, 2008 at 6:11 PM, Ryan L. Bell <ryan.l.bell@...> wrote:
>> I think you can leave that in the gem's lib dir. Jruby should be able to get
>> it on the classpath when require is called.
>>
>> /Ryan
>>
>> Jay McGaffigan wrote:
>>>
>>> Is there a default place to install java extensiions to?
>>>
>>> I'm looking to put  the java extension for rcov into the Rcov gem
>>> install.. It's almost done and I've gotten to a point in the install where I
>>> need to put the jar file somewhere.  The stuff I've seen on creating java
>>> extensions pretty much says it needs to be in the classpath.
>>> In MRI extensions live in the ruby/site_ruby/1.8/{os_specific_dir}
>>>
>>> Is something like that already set in the CP for the jruby?  (ie
>>> ruby/site_ruby/1.8/java)
>>>
>>> If not would it be easy to do?
>>>
>>> Thanks!
>>> Jay
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe from this list, please visit:
>>>
>>>   http://xircles.codehaus.org/manage_email
>>>
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe from this list, please visit:
>>
>>   http://xircles.codehaus.org/manage_email
>>
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>    http://xircles.codehaus.org/manage_email
>
>
>

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

    http://xircles.codehaus.org/manage_email



Re: Installing a Java Extension

by Ryan L. Bell :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

We're working on the gem now. Jay is actually using it in his CI environment. There are some slight differences in the reported results between the JRuby and MRI which we're trying to sort out, but it does seem to work with 1.1.3.

/Ryan

Albert Ramstedt wrote:
Hey!

Do tell us when you drop the gem on rubyforge. I was looking to
install rcov4jr the other day but I didnt find it in the repos and I
figured it was not usable yet. Is it? I would really appreciate
something faster than the pure ruby rcov stuff I am using for now.
Anyway, kudos to you for working on this!

Thanks,
Albert

On Thu, Jul 24, 2008 at 7:01 PM, Vladimir Sizikov vsizikov@... wrote:
  
Hi Jay, Ryan,

Indeed, treat JAR file like any other binary/.so file, and 'require'
when needed. So, it could go to lib dir with no problems.

Take a look at the mongrel gem, for example, it ships with JAR file.

Thanks,
 --Vladimir

On Thu, Jul 24, 2008 at 6:11 PM, Ryan L. Bell ryan.l.bell@... wrote:
    
I think you can leave that in the gem's lib dir. Jruby should be able to get
it on the classpath when require is called.

/Ryan

Jay McGaffigan wrote:
      
Is there a default place to install java extensiions to?

I'm looking to put  the java extension for rcov into the Rcov gem
install.. It's almost done and I've gotten to a point in the install where I
need to put the jar file somewhere.  The stuff I've seen on creating java
extensions pretty much says it needs to be in the classpath.
In MRI extensions live in the ruby/site_ruby/1.8/{os_specific_dir}

Is something like that already set in the CP for the jruby?  (ie
ruby/site_ruby/1.8/java)

If not would it be easy to do?

Thanks!
Jay

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

  http://xircles.codehaus.org/manage_email


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

  http://xircles.codehaus.org/manage_email



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

   http://xircles.codehaus.org/manage_email



    

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

    http://xircles.codehaus.org/manage_email


  

--------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email