How can I run JRuby from Java; but WITHOUT going through
javax.script.ScriptEngineManager?
I would like to call JRuby main function or similar. For example:
jruby.[FooMainClass].eval(new BufferedReader(new
FileReader("myrubyfile.rb")));
thanks!
(BTW, example WITH ScriptEngineManager:
http://dior.ics.muni.cz/~makub/ruby/)
on 2012-12-26 15:17
on 2012-12-26 17:42
Roy - There may be other ways to create and use a Scripting Container, but I don't think it's possible to run JRuby code without one. The Java interpreter just doesn't know Ruby. On the other hand, you could write Java code that would isolate that complexity somewhere so that the call from Java would look and feel more natural. - Keith --- Keith R. Bennett http://about.me/keithrbennett
Please log in before posting. Registration is free and takes only a minute.
Existing account
(Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
Log in with Google account | Log in with Yahoo account
No account? Register here.