Thanks again Dave. I am starting to learn the differences between
the
two sets of classes.
Using the Rhino classes the above example would look something like:
Context cx = Context.enter();
Scriptable scope = cx.initStandardObjects();
Object out = Context.javaToJS(System.out, scope);
ScriptableObject.putProperty(scope, "out", out);
String s = "var a=10;" +
"var b=5;" +
"var c=a+b;" +
"out.println(c);";
cx.evaluateString(scope, s, "<cmd>", 1, null);
_______________________________________________
dev-tech-js-engine-rhino mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-js-engine-rhino