Thomas E Enebo wrote:
I will have to take a look later, but I would bet we added some
mandatory piece of state in Ruby that getDefaultInstance() is not
setting up. I can take a look this evening for a bit...Looking
at how BSF sets things up may glean something since that appears to
be working.
Cool, thanks. Just a little update:
I looked at the BSF setup and then at the org.jruby.Main code that
launches JRuby;
My setup now looks like this:
List additionalDirs = new ArrayList();
additionalDirs.add(".");
// FROM Main.initRuntime or the BSF system
ruby_.getObject().setConstant("$VERBOSE", ruby_.getTrue() );
ruby_.getGlobalVariables().defineReadonly("$$", new
ValueAccessor(ruby_.newFixnum(ruby_.hashCode())));
ruby_.defineVariable(new RubyGlobal.StringGlobalVariable(ruby_, "$0",
ruby_.newString("")));
ruby_.getLoadService().init(additionalDirs);
ruby_.getLoadService().require("java");
But nothing has changed, ie. the reported behavior hasn't changed.
Is the System property "jruby.home" required?
Thanks,
murphee
--
Blog @ http://jroller.com/page/murphee
EclipseShell @ http://eclipse-shell.sourceforge.net/
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Jruby-devel mailing list
Jruby-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jruby-devel