I'm not good at English so I may not discript the problem clearly.
I meet a problem while trying to run a complied js file.
Main.class is complied from a js file with rhino.
It works well in shell:
javac Main.class
Hello world!
Then I write a program with C++ which use JNI to run Main.class
But I got the following Exception:
Exception in thread "main" java.lang.NullPointerException
at org.mozilla.javascript.optimizer.OptRuntime
$1.run(OptRuntime.java:247)
at org.mozilla.javascript.Context.call(Context.java:499)
at org.mozilla.javascript.Context.call(Context.java:461)
at
org.mozilla.javascript.optimizer.OptRuntime.main(OptRuntime.java:240)
at Main.main(Unknown Source)
How can I resolve this error ?
Thanks in advance.
_______________________________________________
dev-tech-js-engine-rhino mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-js-engine-rhino