Hi All,
The question might be very fundamental but please bear with me as I'm new to
Script support in jvm.

I tried to import package oracle.tip.pc.services.translation.framework using
importPackage(oracle.tip.pc.services.translation.framework);

But, I got the following exception.

javax.script.ScriptException: sun.org.mozilla.javascript.internal.EcmaError:
ReferenceError: "oracle" is not defined. (<Unknown source>#3) in <Unknown
source> at line number 3
    at
com.sun.script.javascript.RhinoScriptEngine.eval(RhinoScriptEngine.java:110)
    at javax.script.AbstractScriptEngine.eval(AbstractScriptEngine.java:232)
    at test.ScriptTest.main(ScriptTest.java:43)

I have successfully imported the package java.io using
importPackage(java.io);

Can somebody tell me the correct syntax to import packages starting from
other then java or javax?

thanks,
Deepak
_______________________________________________
dev-tech-js-engine-rhino mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-js-engine-rhino

Reply via email to