Hi list,
I’m developing GUI Application(Eclipse RCP) using JRuby console.
The demo is below.
http://bit.ly/4DVJXp
I’d like to support more than one scripts this application and the
application supports code complete and history,
So I think I should use Apache BSF or JSR233 and
org.jruby.ext.Readline to support code complete.
But org.jruby.ext.Readline needs Ruby runtime instance from class and
both script environment don’t provide Ruby runtime instance.
JSR233’s class, “JRubyEngine” is specific name of class.So I hope that
it provide Ruby runtime.
Why doesn’t it provide runtime engine?
Regards,
–
Hiroki K.(a.k.a kompiro)
[email protected]
twitter: @kompiro
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
Hi Hiroki,
On Fri, Nov 13, 2009 at 8:00 AM, Hiroki K. [email protected] wrote:
JSR233’s class, “JRubyEngine” is specific name of class.So I hope that
it provide Ruby runtime.
Why doesn’t it provide runtime engine?
Since JSR 223 doesn’t define any API to get Ruby runtime or equivalent
in other languages, JRubyEngine doesn’t have such method, too. JSR 223
users don’t use JRubyEngine class directly, instead they use
interfaces and classes of javax.script package.
If you want Ruby runtime, I recommend JRuby Embed (Red Bridge) core
API. This API is JRuby specific and not common to languages, but it
might be the best choice for you. For example, you can get Ruby
runtime:
ScriptingContainer container = new ScriptingContainer();
Ruby runtime = container.getRuntime();
Further details are at http://kenai.com/projects/jruby/pages/RedBridge.
-Yoko
http://xircles.codehaus.org/manage_email
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email