aspose file tools
The moose likes Scala and the fly likes calling scala dynamically from java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Barcodes with iOS this week in the iOS forum
or Core Java for the Impatient in the Java 8 forum!

JavaRanch » Java Forums » Languages » Scala
Bookmark "calling scala dynamically from java" Watch "calling scala dynamically from java" New topic

calling scala dynamically from java

Anamitra Bhatt

Joined: Aug 13, 2010
Posts: 1
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].

Garrett Rowe
Ranch Hand

Joined: Jan 17, 2006
Posts: 1296
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.

Some problems are so complex that you have to be highly intelligent and well informed just to be undecided about them. - Laurence J. Peter
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: calling scala dynamically from java