Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

calling scala dynamically from java

 
Anamitra Bhatt
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I am looking for a way to call scala codelet dynamically from java - much like using jsr223 to call say a javascript or jython script. I understand that scala is much more than a scripting language - but it would nice to be able to call a scala code [I mean a src code] from a java runtime dynamically [means programmatically compile it on the fly and the be able to run it by say passing in parameters].

thanks
Anamitra
 
Garrett Rowe
Ranch Hand
Posts: 1296
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to Javaranch!

There is as yet no official JSR 223 compiant Scala implementation. At the bottom of the linked RFE there is a post from one of the guys working with Apache Sling that points to an implementation they built. Here is a video presentation describing the implementation.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic