[#536] SEVG in bignum.c:505... — Sean Chittenden <sean@...>
$ ruby -e 'p [].to_s.strip.to_i'
5 messages
2002/10/13
[#537] darwin shared library patch — Eric Melville <eric@...>
In Darwin, the preferred way to build shared libraries is with two level
9 messages
2002/10/13
[#539] Re: darwin shared library patch
— "Akinori MUSHA" <knu@...>
2002/10/13
Hi,
[#544] Re: darwin shared library patch
— Eric Melville <eric@...>
2002/10/16
> The patch seems to make ENV[]= coredump.
[#546] Re: darwin shared library patch
— "Akinori MUSHA" <knu@...>
2002/10/16
At Thu, 17 Oct 2002 01:41:49 +0900,
[#541] Patch for MacOS X dln.c — Luc B駘anger <belanglu@...>
I have a patch for the dynamic linker in MacOS X, which permit to load
7 messages
2002/10/13
JRuby (was: Re: can java applications invoke ruby scripts??)
From:
Anders Bengtsson <ndrsbngtssn@...>
Date:
2002-10-18 11:11:33 UTC
List:
ruby-core #557
John Davis wrote:
> I have trouble to invoke Ruby scripts in Java applications
>
> The following didn't work
> > Ruby runtime = Ruby.getDefaultInstance(null);
> > runtime.evalScript("puts 'hello'");
Didn't work *how*?
> any examples????
No. :)
> Runtime.getRuntime().exec("jruby test.rb"); //didn't work either, no output
>
> //test.rb
> puts 'hello'
First of all, can you run "jruby test.rb" from the command line? If that
doesn't work, there is no point in trying to do the same from within an
application.
But if your application is a Java application you will have more success
using JRuby directly, instead of running it as a separate program (as
you do with exec() ).
> So basically Ruby doesn't support Java. i.e. Ruby language can't invoke Java
> API
Ruby doesn't support Java any more than that it can launch Java
applications, just like it can launch any kind of program. *JRuby*
however, can directly access Java objects.
You can find out more about JRuby at <http://jruby.sourceforge.net/>,
where you can also find the "jruby-user" mailing list.
/Anders
--
A n d e r s B e n g t s s o n | ndrsbngtssn@yahoo.se
Stockholm, Sweden |
_____________________________________________________
Gratis e-mail resten av livet pwww.yahoo.se/mail
Busenkelt!