|
View:
New views
5 Messages
—
Rating Filter:
Alert me
|
|
|
Installing a Java ExtensionIs 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 ExtensionI 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 ExtensionHi 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 ExtensionHey!
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/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: --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
| Free Forum Powered by Nabble | Forum Help |