> I'm trying to run a scala script based on the scripting tutorial.

I don't believe there is a scripting engine for Scala. If you want to write a 
Pivot app using Scala, you'll need to compile it, as you would with Java.

> I'm getting
> the below error which is because I don't know what I should include in the
> importClass line below. I could not find any examples but would appreciate
> any help. This is probably something obvious but would appreciate any help
> on this.
> 
> javax.script.ScriptException: sun.org.mozilla.javascript.internal.EcmaError:
> ReferenceError: "bar" is not defined. (#5) in  at line number 5
>    importClass(java.lang.System);
>    importPackage(org.apache.pivot.wtk);
>    System.out.println("bar = " + bar);

That's a JavaScript error. You are trying to reference an undefined variable 
named foo. I believe the sample application pre-populates the script namespace 
with the "foo" variable. If your launcher application is not doing that, it 
will be undefined.

Reply via email to