Is that feature still supported? I can't seem to find any Documentation past 2008 or so. This is an insert from the Oracle website...
At runtime, the JSR 223 Scripting APIs must locate the appropriate script engine for the scripting language you want to use. The script engine interprets and executes the script. You can get the current JSR 223 third-party script engines from the Scripting Project on java.net by downloading the jsr223-engines.tar.gz or the jsr223-engines file and expanding it somewhere on your system, for example, in the scriptengines directory.
But it was written in 2007 and the link for all of these links are no longer in service. So I am unable to get any JRuby engine...anything.
Oracle Doc: http://www.oracle.com/technetwork/articles/dsl/jruby-141877.html
If anyone could supply me with a current Tutorial or Docs that I can Use JRuby inside Java. I currently have JRuby running successfully, but don't know how to setup Scriptengines in Java.
Thanks Very much.
You can go and download the complete jruby .jar file from here
Then I just grabbed some sample code:
saved it as
RubyFromJava.java, I have bothRubyFromJava.javaandjruby-complete-9.0.0.0.rc1.jaron the same dir and ran:works as expected and invoked jruby code from java
If your idea is to just call Java from Ruby, thats far easy, you can follow the wiki located here