Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

JSR-223 Scala Script Engine

Tags:

java

scala

I'm trying to use Scala as a script language, that will be called from java and after that I need to get some objects as a result of script execution.

I tried to find a good interpretor that can do what i need but unsuccesfull. Is the exists an implementation of JSR-223 for Scala? Or may be someone know how to solve my problem. Thanks.

like image 368
yu.pitomets Avatar asked Jun 26 '12 14:06

yu.pitomets


2 Answers

Official support in scala starts in version 2.11 as seen in this closed ticket: https://issues.scala-lang.org/browse/SI-874

like image 183
Oswaldo Avatar answered Nov 19 '22 23:11

Oswaldo


This library: http://code.google.com/p/scalascriptengine/ may help solve your problem.

like image 3
Johan Prinsloo Avatar answered Nov 19 '22 22:11

Johan Prinsloo