Installing a Java Extension

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

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:

ruby/site_ruby/1.8/java)


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

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 [email protected]
wrote:

install… It’s almost done and I’ve gotten to a point in the install where I
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
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 R. 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 S. <[email protected]> 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 <[email protected]>
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

    </pre>
  </blockquote>
  <pre wrap="">

To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

  </pre>
</blockquote>
<pre 

wrap="">---------------------------------------------------------------------
To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

</pre>
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
<a class="moz-txt-link-freetext" 

href=“http://xircles.codehaus.org/manage_email”>http://xircles.codehaus.org/manage_email



To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

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 S. [email protected]
wrote:

On Thu, Jul 24, 2008 at 6:11 PM, Ryan L. Bell [email protected] wrote:

install… It’s almost done and I’ve gotten to a point in the install where I
Jay
To unsubscribe from this list, please visit:


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs