Meaningless Drivel is fun!*
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 Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Languages » Scala
Bookmark "calling scala dynamically from java" Watch "calling scala dynamically from java" New topic
Author

calling scala dynamically from java

Anamitra Bhatt
Greenhorn

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

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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: calling scala dynamically from java
 
Similar Threads
Where to post Scala discussions
Which is better Groovy or Scala?
what is scala ?
Maven + scala + java
How Scala faster than Java?