[jQuery] jQuery on Mozilla rhino
Hello,
Anyone tried to run jQuery on rhino?
I followed John's post, it was okay.
However, if I code in Java (since I don't use command line), the
env.js cannot be interpreted:
E.g.
engine.eval(new FileReader("C:/env.js"));
It gives:
javax.script.ScriptException:
sun.org.mozilla.javascript.internal.EvaluatorException: missing :
after property id (<Unknown source>#15) in <Unknown source> at line
number 15
at com.sun.script.javascript.RhinoScriptEngine.eval(Unknown Source)
at javax.script.AbstractScriptEngine.eval(Unknown Source)
at Test.main(Test.java:33)
Where line15 is:
get userAgent(){
a little bit strange...
Any idea?
Thanks.