Rubyans and Scalahads,
i’m attempting to call JRuby as a scripting engine from scala. It should
work more or less as in the wiki example for calling JRuby as scripting
engine from Java http://wiki.jruby.org/wiki/Java_Integration. Here’s
the
code http://paste.pocoo.org/show/106544/ i’m using for testing.
However, i
can’t get either (Scala or Java) to work because of versioning issues.
If i
use the org.apache.bsf jar for jsr 223 scripting and org.jruby
jruby-complete jar for jruby, then no combination of versions (bsf
3.1beta -
3.2beta x 1.1.2 - 1.1.6) does not produce a problem with the parse
method
used by eval. Here’s a stacktrace of the exception that’s
thrownhttp://paste.pocoo.org/show/106542/.
If i use the org.livetribe jar for jsr 223, then no combination with the
org.jruby jars does not produce a classfile version problem. Here’s a
stacktrace for that http://paste.pocoo.org/show/106573/ . Examples of
the
maven depends i’m using for jsr 223 and jruby are
herehttp://paste.pocoo.org/show/106574/
.
Any help would be greatly appreciated.
Best wishes,
–greg
–
L.G. Meredith
Managing Partner
Biosimilarity LLC
806 55th St NE
Seattle, WA 98105
+1 206.650.3740