Re: can java applications invoke ruby scripts??

From: "John Davis" <javaccnews@...>
Date: 2002-10-18 09:07:44 UTC
List: ruby-core #556
I have trouble to invoke Ruby scripts in Java applications

The following didn't work
> Ruby runtime = Ruby.getDefaultInstance(null);
> runtime.evalScript("puts 'hello'");


any examples????


Runtime.getRuntime().exec("jruby test.rb"); //didn't work either, no output

//test.rb
puts 'hello'



So basically Ruby doesn't support Java. i.e. Ruby language can't invoke Java
API

In This Thread