I’d like to run an irb console via bsf in a swing application – has
anyone done this?
The code here: org/jruby/demo/IRBConsole.java directly accesses jruby
from Java without bsf.
I’m hoping to adapt it.
I have jruby integrated into a large java application via BSF.
The jruby scripts attach to buttons and interact with the users and
existing Java objects.
I also have scripts that use a controller and erb model to generate
xhtml views with embedded java objects.
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
If you want to interact with existing java objects, your main issue is
that currently the console creates a new runtime, and can’t attach to
one that alreadt exists. There is a patch to do that however, but hasn’t
been applied in trunk.
Stephen B. wrote:
The jruby scripts attach to buttons and interact with the users and
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
On 2 Oct 2008, at 07:33, Stephen B. wrote:
The jruby scripts attach to buttons and interact with the users and
existing Java objects.
I also have scripts that use a controller and erb model to generate
xhtml views with embedded java objects.
Can you get a ruby runtime from BSF? I suspect that’s your issue with
TextAreaReadline.
The obvious alternative is to look at bin/jirb_swing. I assume that
will work in BSF? If you already have JTextPane or similar ready to go
it’s a three liner.
(Hmm, I note in passing that it looks like the FrameBringer issue has
been resolved)
Damian
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email