pivot-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Greg Brown <gk_br...@verizon.net>
Subject Re: Trying to run a scala script
Date Fri, 08 Apr 2011 12:55:35 GMT
>      //This doesn't work
>      //val mgr = new ScriptEngineManager()
>      //val engine = mgr.getEngineByName("scala")
> I think the problem is that I am unable to get a ScriptEngine for a given
> name but only by using the ScalaScriptEngineFactory. Can you let me know
> whether this is a Pivot issue or the way the Sling engine creates a
> ScriptEngine.

My guess is that either you are passing the wrong engine name or Sling isn't registering the
engine properly with the script engine manager.


View raw message