Sorry I think time it will show.
>Dear Sir, >I'm so grateful you considered reading this mail spending a moment of your valuable time. >Please accept my humble gratitude . >I'm an Undergraduate of the Department of Computer Science & Engineering , University of Moratuwa , Sri Lanka [1] . >I watched your Google Tech Talk on Scala[2]. It's really interesting . I'm currently working on a Google Summer of Code project related to Scala[3]. > The project is to make Scala available in Apache Sling [4]. The intention is to call scala compiler in a JavaScriptEngine eval method (JSR223). > The source code is in Java and I use the Scala library to access scala classes. > I thought of approaching you because I didn't find any answer either from the scala mailing list or the internet. >I have three questions, >1. I need a mechanism to read a Scala file and run it in the eval method. Currently I'm using the scala.tools.nsc.Interpreter for this. Is there a better mechanism. >2. There is a need to specify the path to "scala-library-2.7.1.jar" using scala.tools.nsc.Settings to run the Interpreter . How can I avoid this and load the path at runtime without the user having to specify path. Is there an alternative method. >3. How can I use Interpreter.bind method and use the variable pointing to the bound object to invoke the Object functions in Scala. >I was so glad I could make scala popular using Summer of Code as a stage but now I'm >unable to progress without solutions to above questions, >The mid evaluation is closing so I need to answer these questions to show some progress. >Thank you for your time. Hope to get a reply soon. >Yours Faithfully, >Janandith Uditha Jayawardena. >references: >[1] http://www.cse.mrt.ac.lk/ >[2] http://video.google.com/videoplay?docid=553859542692229789 >[3] http://code.google.com/soc/2008/asf/appinfo.html?csaid=D8773619086359A6 >[4] http://incubator.apache.org/sling/site/index.html
